home *** CD-ROM | disk | FTP | other *** search
/ CD Actual 3 / CD ACTUAL 3.iso / linux / docs / linux-do / network- / nag-1.002 / nag-1 / TheGuide / intro / tcpip.tex < prev   
LaTeX Document  |  1994-08-17  |  52.3 KB

open in: MacOS 8.1     |     Win98     |     DOS

browse contents    |     view JSON data     |     view as text


This file was processed as: LaTeX Document (document/latex).

ConfidenceProgramDetectionMatch TypeSupport
100% dexvert LaTeX Document (document/latex) magic Supported
1% dexvert Corel 10 Texture (image/corel10Texture) ext Unsupported
1% dexvert Text File (text/txt) fallback Supported
100% file LaTeX document text default
99% file LaTeX document, ASCII text default
100% checkBytes Printable ASCII default
100% perlTextCheck Likely Text (Perl) default
100% siegfried fmt/281 LaTeX (Subdocument) default
100% detectItEasy Format: Plain text[LF] default
100% xdgMime text/x-matlab default (weak)



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 25 25 25 25 25 25 25 25 | 25 25 25 25 25 25 25 25 |%%%%%%%%|%%%%%%%%|
|00000010| 25 25 25 25 25 25 25 25 | 25 25 25 25 25 25 25 25 |%%%%%%%%|%%%%%%%%|
|00000020| 25 25 25 25 25 25 25 25 | 25 25 25 25 25 25 25 25 |%%%%%%%%|%%%%%%%%|
|00000030| 25 25 25 25 25 25 25 25 | 25 25 25 25 25 25 25 25 |%%%%%%%%|%%%%%%%%|
|00000040| 25 0a 25 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |%.% | |
|00000050| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000060| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000070| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000080| 20 20 25 0a 25 20 20 20 | 20 20 20 20 20 20 20 20 | %.% | |
|00000090| 20 20 20 20 20 20 20 20 | 20 20 20 20 4c 65 67 61 | | Lega|
|000000a0| 6c 20 4e 6f 74 69 63 65 | 20 20 20 20 20 20 20 20 |l Notice| |
|000000b0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000000c0| 20 20 20 20 25 0a 25 20 | 20 20 20 20 20 20 20 20 | %.% | |
|000000d0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000000e0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000000f0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000100| 20 20 20 20 20 20 25 0a | 25 20 54 68 69 73 20 64 | %.|% This d|
|00000110| 6f 63 75 6d 65 6e 74 20 | 69 73 20 63 6f 70 79 72 |ocument |is copyr|
|00000120| 69 67 68 74 20 62 79 20 | 4f 6c 61 66 20 4b 69 72 |ight by |Olaf Kir|
|00000130| 63 68 2c 20 6f 6b 69 72 | 40 6d 6f 6e 61 64 2e 73 |ch, okir|@monad.s|
|00000140| 77 62 2e 64 65 20 20 20 | 25 0a 25 20 20 20 20 20 |wb.de |%.% |
|00000150| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000160| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000170| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000180| 20 20 20 20 20 20 20 20 | 20 20 25 0a 25 20 46 6f | | %.% Fo|
|00000190| 72 20 63 6f 70 79 69 6e | 67 20 63 6f 6e 64 69 74 |r copyin|g condit|
|000001a0| 69 6f 6e 73 2c 20 70 6c | 65 61 73 65 20 72 65 66 |ions, pl|ease ref|
|000001b0| 65 72 20 74 6f 20 74 68 | 65 20 66 69 6c 65 20 43 |er to th|e file C|
|000001c0| 4f 50 59 49 4e 47 2e 09 | 25 0a 25 20 20 20 20 20 |OPYING..|%.% |
|000001d0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000001e0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000001f0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000200| 20 20 20 20 20 20 20 20 | 20 20 25 0a 25 20 54 68 | | %.% Th|
|00000210| 65 20 61 75 74 68 6f 72 | 20 69 73 20 6e 6f 74 20 |e author| is not |
|00000220| 6c 69 61 62 6c 65 20 66 | 6f 72 20 61 6e 79 20 64 |liable f|or any d|
|00000230| 61 6d 61 67 65 73 2c 20 | 64 69 72 65 63 74 20 6f |amages, |direct o|
|00000240| 72 20 69 6e 64 69 72 65 | 63 74 2c 20 25 0a 25 20 |r indire|ct, %.% |
|00000250| 72 65 73 75 6c 74 69 6e | 67 20 66 72 6f 6d 20 74 |resultin|g from t|
|00000260| 68 65 20 75 73 65 20 6f | 66 20 69 6e 66 6f 72 6d |he use o|f inform|
|00000270| 61 74 69 6f 6e 20 70 72 | 6f 76 69 64 65 64 20 69 |ation pr|ovided i|
|00000280| 6e 20 74 68 69 73 20 20 | 20 20 20 20 20 20 25 0a |n this | %.|
|00000290| 25 20 64 6f 63 75 6d 65 | 6e 74 2e 20 20 20 20 20 |% docume|nt. |
|000002a0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000002b0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000002c0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000002d0| 25 0a 25 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |%.% | |
|000002e0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000002f0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000300| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000310| 20 20 25 0a 25 25 25 25 | 25 25 25 25 25 25 25 25 | %.%%%%|%%%%%%%%|
|00000320| 25 25 25 25 25 25 25 25 | 25 25 25 25 25 25 25 25 |%%%%%%%%|%%%%%%%%|
|00000330| 25 25 25 25 25 25 25 25 | 25 25 25 25 25 25 25 25 |%%%%%%%%|%%%%%%%%|
|00000340| 25 25 25 25 25 25 25 25 | 25 25 25 25 25 25 25 25 |%%%%%%%%|%%%%%%%%|
|00000350| 25 25 25 25 25 0a 25 20 | 57 68 65 6e 20 76 69 65 |%%%%%.% |When vie|
|00000360| 77 69 6e 67 20 74 68 69 | 73 20 64 6f 63 75 6d 65 |wing thi|s docume|
|00000370| 6e 74 20 77 69 74 68 20 | 76 69 20 6f 6e 20 61 6e |nt with |vi on an|
|00000380| 20 38 30 2d 63 6f 6c 75 | 6d 6e 73 20 73 63 72 65 | 80-colu|mns scre|
|00000390| 65 6e 2c 20 20 20 25 0a | 25 20 64 6f 20 61 20 27 |en, %.|% do a '|
|000003a0| 3a 73 65 20 6e 6f 6e 75 | 6d 62 65 72 27 20 66 69 |:se nonu|mber' fi|
|000003b0| 72 73 74 2e 20 20 20 20 | 20 20 20 20 20 20 20 20 |rst. | |
|000003c0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000003d0| 20 20 20 20 20 20 20 20 | 25 0a 25 25 25 25 25 25 | |%.%%%%%%|
|000003e0| 25 25 25 25 25 25 25 25 | 25 25 25 25 25 25 25 25 |%%%%%%%%|%%%%%%%%|
|000003f0| 25 25 25 25 25 25 25 25 | 25 25 25 25 25 25 25 25 |%%%%%%%%|%%%%%%%%|
|00000400| 25 25 25 25 25 25 25 25 | 25 25 25 25 25 25 25 25 |%%%%%%%%|%%%%%%%%|
|00000410| 25 25 25 25 25 25 25 25 | 25 25 25 0a 0a 5c 63 68 |%%%%%%%%|%%%..\ch|
|00000420| 61 70 74 65 72 7b 49 73 | 73 75 65 73 20 6f 66 20 |apter{Is|sues of |
|00000430| 54 43 50 2f 49 50 20 4e | 65 74 77 6f 72 6b 69 6e |TCP/IP N|etworkin|
|00000440| 67 7d 0a 25 25 25 25 25 | 25 25 25 25 25 25 25 25 |g}.%%%%%|%%%%%%%%|
|00000450| 25 25 25 25 25 25 25 25 | 25 25 25 25 25 25 25 25 |%%%%%%%%|%%%%%%%%|
|00000460| 25 25 25 25 25 25 25 25 | 25 25 25 25 25 25 25 25 |%%%%%%%%|%%%%%%%%|
|00000470| 25 25 25 25 25 25 25 25 | 25 25 25 25 25 25 25 25 |%%%%%%%%|%%%%%%%%|
|00000480| 25 25 25 25 0a 25 20 54 | 43 50 2f 49 50 20 6e 65 |%%%%.% T|CP/IP ne|
|00000490| 74 77 6f 72 6b 69 6e 67 | 20 20 20 20 20 20 20 20 |tworking| |
|000004a0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000004b0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000004c0| 20 20 20 20 20 25 0a 25 | 25 25 25 25 25 25 25 25 | %.%|%%%%%%%%|
|000004d0| 25 25 25 25 25 25 25 25 | 25 25 25 25 25 25 25 25 |%%%%%%%%|%%%%%%%%|
|000004e0| 25 25 25 25 25 25 25 25 | 25 25 25 25 25 25 25 25 |%%%%%%%%|%%%%%%%%|
|000004f0| 25 25 25 25 25 25 25 25 | 25 25 25 25 25 25 25 25 |%%%%%%%%|%%%%%%%%|
|00000500| 25 25 25 25 25 25 25 25 | 0a 5c 6c 61 62 65 6c 7b |%%%%%%%%|.\label{|
|00000510| 74 63 70 69 70 7d 0a 5c | 69 6e 64 65 78 7b 54 43 |tcpip}.\|index{TC|
|00000520| 50 2f 49 50 7c 28 7d 0a | 0a 57 65 20 77 69 6c 6c |P/IP|(}.|.We will|
|00000530| 20 6e 6f 77 20 74 75 72 | 6e 20 74 6f 20 74 68 65 | now tur|n to the|
|00000540| 20 64 65 74 61 69 6c 73 | 20 79 6f 75 27 6c 6c 20 | details| you'll |
|00000550| 63 6f 6d 65 20 69 6e 20 | 74 6f 75 63 68 20 77 69 |come in |touch wi|
|00000560| 74 68 20 77 68 65 6e 0a | 63 6f 6e 6e 65 63 74 69 |th when.|connecti|
|00000570| 6e 67 20 79 6f 75 72 20 | 5c 6c 69 6e 75 78 7b 7d |ng your |\linux{}|
|00000580| 20 6d 61 63 68 69 6e 65 | 20 74 6f 20 61 20 54 43 | machine| to a TC|
|00000590| 50 2f 49 50 20 6e 65 74 | 77 6f 72 6b 20 69 6e 63 |P/IP net|work inc|
|000005a0| 6c 75 64 69 6e 67 20 64 | 65 61 6c 69 6e 67 0a 77 |luding d|ealing.w|
|000005b0| 69 74 68 20 49 50 7e 61 | 64 64 72 65 73 73 65 73 |ith IP~a|ddresses|
|000005c0| 2c 20 68 6f 73 74 20 6e | 61 6d 65 73 2c 20 61 6e |, host n|ames, an|
|000005d0| 64 20 73 6f 6d 65 74 69 | 6d 65 73 20 72 6f 75 74 |d someti|mes rout|
|000005e0| 69 6e 67 20 69 73 73 75 | 65 73 2e 20 20 54 68 69 |ing issu|es. Thi|
|000005f0| 73 0a 63 68 61 70 74 65 | 72 20 67 69 76 65 73 20 |s.chapte|r gives |
|00000600| 79 6f 75 20 74 68 65 20 | 62 61 63 6b 67 72 6f 75 |you the |backgrou|
|00000610| 6e 64 20 79 6f 75 20 6e | 65 65 64 20 69 6e 20 6f |nd you n|eed in o|
|00000620| 72 64 65 72 20 74 6f 20 | 75 6e 64 65 72 73 74 61 |rder to |understa|
|00000630| 6e 64 20 77 68 61 74 0a | 79 6f 75 72 20 73 65 74 |nd what.|your set|
|00000640| 75 70 20 72 65 71 75 69 | 72 65 73 2c 20 77 68 69 |up requi|res, whi|
|00000650| 6c 65 20 74 68 65 20 6e | 65 78 74 20 63 68 61 70 |le the n|ext chap|
|00000660| 74 65 72 73 20 77 69 6c | 6c 20 63 6f 76 65 72 20 |ters wil|l cover |
|00000670| 74 68 65 20 74 6f 6f 6c | 73 20 74 6f 0a 64 65 61 |the tool|s to.dea|
|00000680| 6c 20 77 69 74 68 20 74 | 68 65 73 65 2e 0a 0a 0a |l with t|hese....|
|00000690| 0a 20 0a 5c 73 65 63 74 | 69 6f 6e 7b 4e 65 74 77 |. .\sect|ion{Netw|
|000006a0| 6f 72 6b 69 6e 67 20 49 | 6e 74 65 72 66 61 63 65 |orking I|nterface|
|000006b0| 73 7d 0a 25 25 25 25 25 | 25 25 25 25 25 25 25 25 |s}.%%%%%|%%%%%%%%|
|000006c0| 25 25 25 25 25 25 25 25 | 25 25 25 25 25 25 25 25 |%%%%%%%%|%%%%%%%%|
|000006d0| 25 25 25 25 25 25 25 25 | 25 25 25 25 25 25 25 25 |%%%%%%%%|%%%%%%%%|
|000006e0| 25 25 25 25 25 25 25 25 | 25 25 25 25 25 25 25 25 |%%%%%%%%|%%%%%%%%|
|000006f0| 25 25 25 25 0a 5c 6c 61 | 62 65 6c 7b 74 63 70 69 |%%%%.\la|bel{tcpi|
|00000700| 70 2e 69 6e 74 65 72 66 | 61 63 65 73 7d 0a 5c 69 |p.interf|aces}.\i|
|00000710| 6e 64 65 78 7b 61 63 63 | 65 73 73 20 6e 65 74 77 |ndex{acc|ess netw|
|00000720| 6f 72 6b 20 68 61 72 64 | 77 61 72 65 7c 73 65 65 |ork hard|ware|see|
|00000730| 20 7b 69 6e 74 65 72 66 | 61 63 65 7d 7d 0a 5c 69 | {interf|ace}}.\i|
|00000740| 6e 64 65 78 7b 6e 65 74 | 77 6f 72 6b 21 69 6e 74 |ndex{net|work!int|
|00000750| 65 72 66 61 63 65 7c 73 | 65 65 20 7b 69 6e 74 65 |erface|s|ee {inte|
|00000760| 72 66 61 63 65 7d 7d 0a | 5c 69 6e 64 65 78 7b 69 |rface}}.|\index{i|
|00000770| 6e 74 65 72 66 61 63 65 | 7d 0a 0a 54 6f 20 68 69 |nterface|}..To hi|
|00000780| 64 65 20 74 68 65 20 64 | 69 76 65 72 73 69 74 79 |de the d|iversity|
|00000790| 20 6f 66 20 65 71 75 69 | 70 6d 65 6e 74 20 74 68 | of equi|pment th|
|000007a0| 61 74 20 6d 61 79 20 62 | 65 20 75 73 65 64 20 69 |at may b|e used i|
|000007b0| 6e 20 61 20 6e 65 74 77 | 6f 72 6b 69 6e 67 0a 65 |n a netw|orking.e|
|000007c0| 6e 76 69 72 6f 6e 6d 65 | 6e 74 2c 20 54 43 50 2f |nvironme|nt, TCP/|
|000007d0| 49 50 20 64 65 66 69 6e | 65 73 20 61 6e 20 61 62 |IP defin|es an ab|
|000007e0| 73 74 72 61 63 74 20 5c | 65 6d 70 68 7b 69 6e 74 |stract \|emph{int|
|000007f0| 65 72 66 61 63 65 7d 20 | 74 68 72 6f 75 67 68 20 |erface} |through |
|00000800| 77 68 69 63 68 0a 74 68 | 65 20 68 61 72 64 77 61 |which.th|e hardwa|
|00000810| 72 65 20 69 73 20 61 63 | 63 65 73 73 65 64 2e 20 |re is ac|cessed. |
|00000820| 54 68 69 73 20 69 6e 74 | 65 72 66 61 63 65 20 6f |This int|erface o|
|00000830| 66 66 65 72 73 20 61 20 | 73 65 74 20 6f 66 20 6f |ffers a |set of o|
|00000840| 70 65 72 61 74 69 6f 6e | 73 0a 77 68 69 63 68 20 |peration|s.which |
|00000850| 69 73 20 74 68 65 20 73 | 61 6d 65 20 66 6f 72 20 |is the s|ame for |
|00000860| 61 6c 6c 20 74 79 70 65 | 73 20 6f 66 20 68 61 72 |all type|s of har|
|00000870| 64 77 61 72 65 20 61 6e | 64 20 62 61 73 69 63 61 |dware an|d basica|
|00000880| 6c 6c 79 20 64 65 61 6c | 73 20 77 69 74 68 0a 73 |lly deal|s with.s|
|00000890| 65 6e 64 69 6e 67 20 61 | 6e 64 20 72 65 63 65 69 |ending a|nd recei|
|000008a0| 76 69 6e 67 20 70 61 63 | 6b 65 74 73 2e 0a 0a 0a |ving pac|kets....|
|000008b0| 46 6f 72 20 65 61 63 68 | 20 70 65 72 69 70 68 65 |For each| periphe|
|000008c0| 72 65 61 6c 20 64 65 76 | 69 63 65 20 79 6f 75 20 |real dev|ice you |
|000008d0| 77 61 6e 74 20 74 6f 20 | 75 73 65 20 66 6f 72 20 |want to |use for |
|000008e0| 6e 65 74 77 6f 72 6b 69 | 6e 67 2c 20 61 0a 63 6f |networki|ng, a.co|
|000008f0| 72 72 65 73 70 6f 6e 64 | 69 6e 67 20 69 6e 74 65 |rrespond|ing inte|
|00000900| 72 66 61 63 65 20 68 61 | 73 20 74 6f 20 62 65 20 |rface ha|s to be |
|00000910| 70 72 65 73 65 6e 74 20 | 69 6e 20 74 68 65 20 6b |present |in the k|
|00000920| 65 72 6e 65 6c 2e 20 46 | 6f 72 20 65 78 61 6d 70 |ernel. F|or examp|
|00000930| 6c 65 2c 0a 45 74 68 65 | 72 6e 65 74 20 69 6e 74 |le,.Ethe|rnet int|
|00000940| 65 72 66 61 63 65 73 20 | 69 6e 20 5c 6c 69 6e 75 |erfaces |in \linu|
|00000950| 78 7b 7d 20 61 72 65 20 | 63 61 6c 6c 65 64 20 5c |x{} are |called \|
|00000960| 66 69 6c 65 7b 65 74 68 | 30 7d 20 61 6e 64 20 5c |file{eth|0} and \|
|00000970| 66 69 6c 65 7b 65 74 68 | 31 7d 2c 0a 61 6e 64 20 |file{eth|1},.and |
|00000980| 53 4c 49 50 20 69 6e 74 | 65 72 66 61 63 65 73 20 |SLIP int|erfaces |
|00000990| 63 6f 6d 65 20 61 73 20 | 5c 66 69 6c 65 7b 73 6c |come as |\file{sl|
|000009a0| 30 7d 2c 20 5c 66 69 6c | 65 7b 73 6c 31 7d 2c 20 |0}, \fil|e{sl1}, |
|000009b0| 65 74 63 2e 20 20 54 68 | 65 73 65 0a 69 6e 74 65 |etc. Th|ese.inte|
|000009c0| 72 66 61 63 65 20 6e 61 | 6d 65 73 20 61 72 65 20 |rface na|mes are |
|000009d0| 75 73 65 64 20 66 6f 72 | 20 63 6f 6e 66 69 67 75 |used for| configu|
|000009e0| 72 61 74 69 6f 6e 20 70 | 75 72 70 6f 73 65 73 20 |ration p|urposes |
|000009f0| 77 68 65 6e 20 79 6f 75 | 20 77 61 6e 74 20 74 6f |when you| want to|
|00000a00| 0a 6e 61 6d 65 20 61 20 | 70 61 72 74 69 63 75 6c |.name a |particul|
|00000a10| 61 72 20 70 68 79 73 69 | 63 61 6c 20 64 65 76 69 |ar physi|cal devi|
|00000a20| 63 65 20 74 6f 20 74 68 | 65 20 6b 65 72 6e 65 6c |ce to th|e kernel|
|00000a30| 2e 20 54 68 65 79 20 68 | 61 76 65 20 6e 6f 20 6d |. They h|ave no m|
|00000a40| 65 61 6e 69 6e 67 0a 62 | 65 79 6f 6e 64 20 74 68 |eaning.b|eyond th|
|00000a50| 61 74 2e 0a 0a 0a 54 6f | 20 62 65 20 75 73 65 61 |at....To| be usea|
|00000a60| 62 6c 65 20 66 6f 72 20 | 54 43 50 2f 49 50 20 6e |ble for |TCP/IP n|
|00000a70| 65 74 77 6f 72 6b 69 6e | 67 2c 20 61 6e 20 69 6e |etworkin|g, an in|
|00000a80| 74 65 72 66 61 63 65 20 | 6d 75 73 74 20 62 65 20 |terface |must be |
|00000a90| 61 73 73 69 67 6e 65 64 | 20 61 6e 0a 49 50 7e 61 |assigned| an.IP~a|
|00000aa0| 64 64 72 65 73 73 20 77 | 68 69 63 68 20 73 65 72 |ddress w|hich ser|
|00000ab0| 76 65 73 20 61 73 20 69 | 74 73 20 69 64 65 6e 74 |ves as i|ts ident|
|00000ac0| 69 66 63 61 74 69 6f 6e | 20 77 68 65 6e 20 63 6f |ifcation| when co|
|00000ad0| 6d 6d 75 6e 69 63 61 74 | 69 6e 67 20 77 69 74 68 |mmunicat|ing with|
|00000ae0| 20 74 68 65 0a 72 65 73 | 74 20 6f 66 20 74 68 65 | the.res|t of the|
|00000af0| 20 77 6f 72 6c 64 2e 20 | 54 68 69 73 20 61 64 64 | world. |This add|
|00000b00| 72 65 73 73 20 69 73 20 | 64 69 66 66 65 72 65 6e |ress is |differen|
|00000b10| 74 20 66 72 6f 6d 20 74 | 68 65 20 69 6e 74 65 72 |t from t|he inter|
|00000b20| 66 61 63 65 20 6e 61 6d | 65 0a 6d 65 6e 74 69 6f |face nam|e.mentio|
|00000b30| 6e 65 64 20 61 62 6f 76 | 65 3b 20 69 66 20 79 6f |ned abov|e; if yo|
|00000b40| 75 20 63 6f 6d 70 61 72 | 65 20 61 6e 20 69 6e 74 |u compar|e an int|
|00000b50| 65 72 66 61 63 65 20 74 | 6f 20 64 6f 6f 72 2c 20 |erface t|o door, |
|00000b60| 74 68 65 6e 20 74 68 65 | 20 61 64 64 72 65 73 73 |then the| address|
|00000b70| 0a 69 73 20 6c 69 6b 65 | 20 74 68 65 20 6e 61 6d |.is like| the nam|
|00000b80| 65 2d 70 6c 61 74 65 20 | 70 69 6e 6e 65 64 20 6f |e-plate |pinned o|
|00000b90| 6e 20 69 74 2e 0a 0a 0a | 4f 66 20 63 6f 75 72 73 |n it....|Of cours|
|00000ba0| 65 2c 20 74 68 65 72 65 | 20 61 72 65 20 6f 74 68 |e, there| are oth|
|00000bb0| 65 72 20 64 65 76 69 63 | 65 20 70 61 72 61 6d 65 |er devic|e parame|
|00000bc0| 74 65 72 73 20 74 68 61 | 74 20 6d 61 79 20 62 65 |ters tha|t may be|
|00000bd0| 20 73 65 74 3b 20 6f 6e | 65 20 6f 66 0a 74 68 65 | set; on|e of.the|
|00000be0| 73 65 20 69 73 20 74 68 | 65 20 6d 61 78 69 6d 75 |se is th|e maximu|
|00000bf0| 6d 20 73 69 7a 65 20 6f | 66 20 64 61 74 61 67 72 |m size o|f datagr|
|00000c00| 61 6d 73 20 74 68 61 74 | 20 63 61 6e 20 62 65 20 |ams that| can be |
|00000c10| 70 72 6f 63 65 73 73 65 | 64 20 62 79 20 74 68 61 |processe|d by tha|
|00000c20| 74 0a 70 61 72 74 69 63 | 75 6c 61 72 20 70 69 65 |t.partic|ular pie|
|00000c30| 63 65 20 6f 66 20 68 61 | 72 64 77 61 72 65 2c 20 |ce of ha|rdware, |
|00000c40| 61 6c 73 6f 20 63 61 6c | 6c 65 64 20 5c 65 6d 70 |also cal|led \emp|
|00000c50| 68 7b 4d 61 78 69 6d 75 | 6d 20 54 72 61 6e 73 66 |h{Maximu|m Transf|
|00000c60| 65 72 20 55 6e 69 74 7d | 2c 0a 6f 72 20 4d 54 55 |er Unit}|,.or MTU|
|00000c70| 2e 20 4f 74 68 65 72 20 | 61 74 74 72 69 62 75 74 |. Other |attribut|
|00000c80| 65 73 20 77 69 6c 6c 20 | 62 65 20 69 6e 74 72 6f |es will |be intro|
|00000c90| 64 75 63 65 64 20 6c 61 | 74 65 72 2e 0a 0a 0a 5c |duced la|ter....\|
|00000ca0| 73 65 63 74 69 6f 6e 7b | 49 50 20 41 64 64 72 65 |section{|IP Addre|
|00000cb0| 73 73 65 73 7d 0a 25 25 | 25 25 25 25 25 25 25 25 |sses}.%%|%%%%%%%%|
|00000cc0| 25 25 25 25 25 25 25 25 | 25 25 25 25 25 25 25 25 |%%%%%%%%|%%%%%%%%|
|00000cd0| 25 25 25 25 25 25 25 25 | 25 25 25 25 25 25 25 25 |%%%%%%%%|%%%%%%%%|
|00000ce0| 25 25 25 25 25 25 25 25 | 25 25 25 25 25 25 25 25 |%%%%%%%%|%%%%%%%%|
|00000cf0| 25 25 25 25 25 25 25 0a | 5c 6c 61 62 65 6c 7b 74 |%%%%%%%.|\label{t|
|00000d00| 63 70 69 70 2e 69 70 2d | 61 64 64 72 65 73 73 65 |cpip.ip-|addresse|
|00000d10| 73 7d 0a 5c 69 6e 64 65 | 78 7b 49 50 21 6e 65 74 |s}.\inde|x{IP!net|
|00000d20| 77 6f 72 6b 73 7d 0a 5c | 69 6e 64 65 78 7b 49 50 |works}.\|index{IP|
|00000d30| 21 61 64 64 72 65 73 73 | 7c 28 7d 0a 0a 41 73 20 |!address||(}..As |
|00000d40| 6d 65 6e 74 69 6f 6e 65 | 64 20 69 6e 20 74 68 65 |mentione|d in the|
|00000d50| 20 70 72 65 76 69 6f 75 | 73 20 63 68 61 70 74 65 | previou|s chapte|
|00000d60| 72 2c 20 74 68 65 20 61 | 64 64 72 65 73 73 65 73 |r, the a|ddresses|
|00000d70| 20 75 6e 64 65 72 73 74 | 6f 6f 64 20 62 79 20 74 | underst|ood by t|
|00000d80| 68 65 0a 49 50 7e 6e 65 | 74 77 6f 72 6b 69 6e 67 |he.IP~ne|tworking|
|00000d90| 20 70 72 6f 74 6f 63 6f | 6c 20 61 72 65 20 33 32 | protoco|l are 32|
|00000da0| 2d 62 69 74 20 6e 75 6d | 62 65 72 73 2e 20 45 76 |-bit num|bers. Ev|
|00000db0| 65 72 79 20 6d 61 63 68 | 69 6e 65 20 6d 75 73 74 |ery mach|ine must|
|00000dc0| 20 62 65 20 61 73 73 69 | 67 6e 65 64 20 61 0a 6e | be assi|gned a.n|
|00000dd0| 75 6d 62 65 72 20 75 6e | 69 71 75 65 20 74 6f 20 |umber un|ique to |
|00000de0| 74 68 65 20 6e 65 74 77 | 6f 72 6b 69 6e 67 20 65 |the netw|orking e|
|00000df0| 6e 76 69 72 6f 6e 6d 65 | 6e 74 2e 20 49 66 20 79 |nvironme|nt. If y|
|00000e00| 6f 75 20 61 72 65 20 72 | 75 6e 6e 69 6e 67 0a 61 |ou are r|unning.a|
|00000e10| 20 6c 6f 63 61 6c 20 6e | 65 74 77 6f 72 6b 20 74 | local n|etwork t|
|00000e20| 68 61 74 20 64 6f 65 73 | 20 6e 6f 74 20 68 61 76 |hat does| not hav|
|00000e30| 65 20 54 43 50 2f 49 50 | 20 74 72 61 66 66 69 63 |e TCP/IP| traffic|
|00000e40| 20 77 69 74 68 20 6f 74 | 68 65 72 20 0a 6e 65 74 | with ot|her .net|
|00000e50| 77 6f 72 6b 73 2c 20 79 | 6f 75 20 6d 61 79 20 61 |works, y|ou may a|
|00000e60| 73 73 69 67 6e 20 74 68 | 65 73 65 20 6e 75 6d 62 |ssign th|ese numb|
|00000e70| 65 72 73 20 61 63 63 6f | 72 64 69 6e 67 20 74 6f |ers acco|rding to|
|00000e80| 20 79 6f 75 72 20 70 65 | 72 73 6f 6e 61 6c 0a 70 | your pe|rsonal.p|
|00000e90| 72 65 66 65 72 65 6e 63 | 65 73 2e 20 48 6f 77 65 |referenc|es. Howe|
|00000ea0| 76 65 72 2c 20 66 6f 72 | 20 73 69 74 65 73 20 6f |ver, for| sites o|
|00000eb0| 6e 20 74 68 65 20 49 6e | 74 65 72 6e 65 74 2c 20 |n the In|ternet, |
|00000ec0| 6e 75 6d 62 65 72 73 20 | 61 72 65 0a 61 73 73 69 |numbers |are.assi|
|00000ed0| 67 6e 65 64 20 62 79 20 | 61 20 63 65 6e 74 72 61 |gned by |a centra|
|00000ee0| 6c 20 61 75 74 68 6f 72 | 69 74 79 2c 20 74 68 65 |l author|ity, the|
|00000ef0| 20 4e 65 74 77 6f 72 6b | 20 49 6e 66 6f 72 6d 61 | Network| Informa|
|00000f00| 74 69 6f 6e 20 43 65 6e | 74 65 72 2c 0a 6f 72 20 |tion Cen|ter,.or |
|00000f10| 4e 49 43 2e 5c 66 6f 6f | 74 6e 6f 74 65 7b 0a 20 |NIC.\foo|tnote{. |
|00000f20| 46 72 65 71 75 65 6e 74 | 6c 79 2c 20 49 50 7e 61 |Frequent|ly, IP~a|
|00000f30| 64 64 72 65 73 73 65 73 | 20 77 69 6c 6c 20 62 65 |ddresses| will be|
|00000f40| 20 61 73 73 69 67 6e 65 | 64 20 74 6f 20 79 6f 75 | assigne|d to you|
|00000f50| 20 62 79 20 74 68 65 20 | 70 72 6f 76 69 64 65 72 | by the |provider|
|00000f60| 20 79 6f 75 0a 20 62 75 | 79 20 79 6f 75 72 20 49 | you. bu|y your I|
|00000f70| 50 7e 63 6f 6e 6e 65 63 | 74 69 76 69 74 79 20 66 |P~connec|tivity f|
|00000f80| 72 6f 6d 2e 20 48 6f 77 | 65 76 65 72 2c 20 79 6f |rom. How|ever, yo|
|00000f90| 75 20 6d 61 79 20 61 6c | 73 6f 20 61 70 70 6c 79 |u may al|so apply|
|00000fa0| 20 74 6f 0a 20 4e 49 43 | 20 64 69 72 65 63 74 6c | to. NIC| directl|
|00000fb0| 79 20 66 6f 72 20 61 6e | 20 49 50 20 61 64 64 72 |y for an| IP addr|
|00000fc0| 65 73 73 20 66 6f 72 20 | 79 6f 75 72 20 6e 65 74 |ess for |your net|
|00000fd0| 77 6f 72 6b 20 62 79 20 | 73 65 6e 64 69 6e 67 20 |work by |sending |
|00000fe0| 61 20 6d 61 69 6c 20 74 | 6f 0a 20 5c 65 6d 61 69 |a mail t|o. \emai|
|00000ff0| 6c 7b 68 6f 73 74 6d 61 | 73 74 65 72 40 69 6e 74 |l{hostma|ster@int|
|00001000| 65 72 6e 69 63 2e 6e 65 | 74 7d 2e 0a 7d 0a 0a 0a |ernic.ne|t}..}...|
|00001010| 5c 69 6e 64 65 78 7b 64 | 6f 74 74 65 64 20 71 75 |\index{d|otted qu|
|00001020| 61 64 7d 0a 46 6f 72 20 | 65 61 73 69 65 72 20 72 |ad}.For |easier r|
|00001030| 65 61 64 69 6e 67 2c 20 | 49 50 20 61 64 64 72 65 |eading, |IP addre|
|00001040| 73 73 65 73 20 61 72 65 | 20 73 70 6c 69 74 20 75 |sses are| split u|
|00001050| 70 20 69 6e 74 6f 20 66 | 6f 75 72 20 38 7e 62 69 |p into f|our 8~bi|
|00001060| 74 20 6e 75 6d 62 65 72 | 73 0a 63 61 6c 6c 65 64 |t number|s.called|
|00001070| 20 5c 65 6d 70 68 7b 6f | 63 74 65 74 73 7d 2e 20 | \emph{o|ctets}. |
|00001080| 20 46 6f 72 20 65 78 61 | 6d 70 6c 65 2c 20 5c 68 | For exa|mple, \h|
|00001090| 6f 73 74 7b 71 75 61 72 | 6b 2e 70 68 79 73 69 63 |ost{quar|k.physic|
|000010a0| 73 2e 67 72 6f 75 63 68 | 6f 2e 65 64 75 7d 20 68 |s.grouch|o.edu} h|
|000010b0| 61 73 20 61 6e 0a 49 50 | 7e 61 64 64 72 65 73 73 |as an.IP|~address|
|000010c0| 20 6f 66 20 5c 68 6f 73 | 74 7b 30 78 39 35 34 43 | of \hos|t{0x954C|
|000010d0| 30 43 30 34 7d 2c 20 77 | 68 69 63 68 20 69 73 20 |0C04}, w|hich is |
|000010e0| 77 72 69 74 74 65 6e 20 | 61 73 20 5c 68 6f 73 74 |written |as \host|
|000010f0| 7b 31 34 39 2e 37 36 2e | 31 32 2e 34 7d 2e 0a 54 |{149.76.|12.4}..T|
|00001100| 68 69 73 20 66 6f 72 6d | 61 74 20 69 73 20 6f 66 |his form|at is of|
|00001110| 74 65 6e 20 72 65 66 65 | 72 72 65 64 20 74 6f 20 |ten refe|rred to |
|00001120| 61 73 20 74 68 65 20 5c | 65 6d 70 68 7b 64 6f 74 |as the \|emph{dot|
|00001130| 74 65 64 20 71 75 61 64 | 20 6e 6f 74 61 74 69 6f |ted quad| notatio|
|00001140| 6e 7d 2e 0a 0a 0a 41 6e | 6f 74 68 65 72 20 72 65 |n}....An|other re|
|00001150| 61 73 6f 6e 20 66 6f 72 | 20 74 68 69 73 20 6e 6f |ason for| this no|
|00001160| 74 61 74 69 6f 6e 20 69 | 73 20 74 68 61 74 20 49 |tation i|s that I|
|00001170| 50 7e 61 64 64 72 65 73 | 73 65 73 20 61 72 65 20 |P~addres|ses are |
|00001180| 73 70 6c 69 74 20 69 6e | 74 6f 20 61 0a 5c 65 6d |split in|to a.\em|
|00001190| 70 68 7b 6e 65 74 77 6f | 72 6b 7d 20 6e 75 6d 62 |ph{netwo|rk} numb|
|000011a0| 65 72 2c 20 77 68 69 63 | 68 20 69 73 20 63 6f 6e |er, whic|h is con|
|000011b0| 74 61 69 6e 65 64 20 69 | 6e 20 74 68 65 20 6c 65 |tained i|n the le|
|000011c0| 61 64 69 6e 67 20 6f 63 | 74 65 74 73 2c 20 61 6e |ading oc|tets, an|
|000011d0| 64 20 61 0a 5c 65 6d 70 | 68 7b 68 6f 73 74 7d 20 |d a.\emp|h{host} |
|000011e0| 6e 75 6d 62 65 72 2c 20 | 77 68 69 63 68 20 69 73 |number, |which is|
|000011f0| 20 74 68 65 20 72 65 6d | 61 69 6e 64 65 72 2e 20 | the rem|ainder. |
|00001200| 20 57 68 65 6e 20 61 70 | 70 6c 79 69 6e 67 20 74 | When ap|plying t|
|00001210| 6f 20 74 68 65 20 4e 49 | 43 0a 66 6f 72 20 49 50 |o the NI|C.for IP|
|00001220| 7e 61 64 64 72 65 73 73 | 65 73 2c 20 79 6f 75 20 |~address|es, you |
|00001230| 61 72 65 20 6e 6f 74 20 | 61 73 73 69 67 6e 65 64 |are not |assigned|
|00001240| 20 61 6e 20 61 64 64 72 | 65 73 73 20 66 6f 72 20 | an addr|ess for |
|00001250| 65 61 63 68 20 73 69 6e | 67 6c 65 20 68 6f 73 74 |each sin|gle host|
|00001260| 0a 79 6f 75 20 70 6c 61 | 6e 20 74 6f 20 75 73 65 |.you pla|n to use|
|00001270| 2e 20 49 6e 73 74 65 61 | 64 2c 20 79 6f 75 20 61 |. Instea|d, you a|
|00001280| 72 65 20 67 69 76 65 6e | 20 61 20 6e 65 74 77 6f |re given| a netwo|
|00001290| 72 6b 20 6e 75 6d 62 65 | 72 2c 20 61 6e 64 20 61 |rk numbe|r, and a|
|000012a0| 72 65 0a 61 6c 6c 6f 77 | 65 64 20 74 6f 20 61 73 |re.allow|ed to as|
|000012b0| 73 69 67 6e 20 61 6c 6c | 20 76 61 6c 69 64 20 49 |sign all| valid I|
|000012c0| 50 7e 61 64 64 72 65 73 | 73 65 73 20 77 69 74 68 |P~addres|ses with|
|000012d0| 69 6e 20 74 68 69 73 20 | 72 61 6e 67 65 20 74 6f |in this |range to|
|000012e0| 20 68 6f 73 74 73 20 6f | 6e 0a 79 6f 75 72 20 6e | hosts o|n.your n|
|000012f0| 65 74 77 6f 72 6b 20 61 | 63 63 6f 72 64 69 6e 67 |etwork a|ccording|
|00001300| 20 74 6f 20 79 6f 75 72 | 20 70 72 65 66 65 72 65 | to your| prefere|
|00001310| 6e 63 65 73 2e 0a 0a 0a | 44 65 70 65 6e 64 69 6e |nces....|Dependin|
|00001320| 67 20 6f 6e 20 74 68 65 | 20 73 69 7a 65 20 6f 66 |g on the| size of|
|00001330| 20 74 68 65 20 6e 65 74 | 77 6f 72 6b 2c 20 74 68 | the net|work, th|
|00001340| 65 20 68 6f 73 74 20 70 | 61 72 74 20 6d 61 79 20 |e host p|art may |
|00001350| 6e 65 65 64 20 74 6f 20 | 62 65 0a 73 6d 61 6c 6c |need to |be.small|
|00001360| 65 72 20 6f 72 20 6c 61 | 72 67 65 72 2e 20 54 6f |er or la|rger. To|
|00001370| 20 61 63 63 6f 6d 6f 64 | 61 74 65 20 64 69 66 66 | accomod|ate diff|
|00001380| 65 72 65 6e 74 20 6e 65 | 65 64 73 2c 20 74 68 65 |erent ne|eds, the|
|00001390| 72 65 20 61 72 65 20 73 | 65 76 65 72 61 6c 0a 63 |re are s|everal.c|
|000013a0| 6c 61 73 73 65 73 20 6f | 66 20 6e 65 74 77 6f 72 |lasses o|f networ|
|000013b0| 6b 73 2c 20 64 65 66 69 | 6e 69 6e 67 20 64 69 66 |ks, defi|ning dif|
|000013c0| 66 65 72 65 6e 74 20 73 | 70 6c 69 74 73 20 6f 66 |ferent s|plits of|
|000013d0| 20 49 50 7e 61 64 64 72 | 65 73 73 65 73 2e 0a 0a | IP~addr|esses...|
|000013e0| 0a 5c 62 65 67 69 6e 7b | 64 69 73 70 69 74 65 6d |.\begin{|dispitem|
|000013f0| 73 7d 0a 5c 64 69 74 65 | 6d 5b 43 6c 61 73 73 20 |s}.\dite|m[Class |
|00001400| 41 5d 0a 20 20 20 20 20 | 20 20 20 43 6c 61 73 73 |A]. | Class|
|00001410| 20 41 20 63 6f 6d 70 72 | 69 73 65 73 20 6e 65 74 | A compr|ises net|
|00001420| 77 6f 72 6b 73 20 5c 68 | 6f 73 74 7b 31 2e 30 2e |works \h|ost{1.0.|
|00001430| 30 2e 30 7d 20 74 68 72 | 6f 75 67 68 0a 20 20 20 |0.0} thr|ough. |
|00001440| 20 20 20 20 20 5c 68 6f | 73 74 7b 31 32 37 2e 30 | \ho|st{127.0|
|00001450| 2e 30 2e 30 7d 2e 20 20 | 54 68 65 20 6e 65 74 77 |.0.0}. |The netw|
|00001460| 6f 72 6b 20 6e 75 6d 62 | 65 72 20 69 73 20 63 6f |ork numb|er is co|
|00001470| 6e 74 61 69 6e 65 64 20 | 69 6e 20 74 68 65 20 66 |ntained |in the f|
|00001480| 69 72 73 74 0a 20 20 20 | 20 20 20 20 20 6f 63 74 |irst. | oct|
|00001490| 65 74 2e 20 20 54 68 69 | 73 20 70 72 6f 76 69 64 |et. Thi|s provid|
|000014a0| 65 73 20 66 6f 72 20 61 | 20 32 34 7e 62 69 74 20 |es for a| 24~bit |
|000014b0| 68 6f 73 74 20 70 61 72 | 74 2c 20 61 6c 6c 6f 77 |host par|t, allow|
|000014c0| 69 6e 67 20 72 6f 75 67 | 68 6c 79 0a 20 20 20 20 |ing roug|hly. |
|000014d0| 20 20 20 20 31 2e 36 20 | 6d 69 6c 6c 69 6f 6e 20 | 1.6 |million |
|000014e0| 68 6f 73 74 73 2e 0a 0a | 5c 64 69 74 65 6d 5b 43 |hosts...|\ditem[C|
|000014f0| 6c 61 73 73 20 42 5d 0a | 20 20 20 20 20 20 20 20 |lass B].| |
|00001500| 43 6c 61 73 73 20 42 20 | 63 6f 6e 74 61 69 6e 73 |Class B |contains|
|00001510| 20 6e 65 74 77 6f 72 6b | 73 20 5c 68 6f 73 74 7b | network|s \host{|
|00001520| 31 32 38 2e 30 2e 30 2e | 30 7d 20 74 68 72 6f 75 |128.0.0.|0} throu|
|00001530| 67 68 0a 20 20 20 20 20 | 20 20 20 5c 68 6f 73 74 |gh. | \host|
|00001540| 7b 31 39 31 2e 32 35 35 | 2e 30 2e 30 7d 3b 20 74 |{191.255|.0.0}; t|
|00001550| 68 65 20 6e 65 74 77 6f | 72 6b 20 6e 75 6d 62 65 |he netwo|rk numbe|
|00001560| 72 20 69 73 20 69 6e 20 | 74 68 65 20 66 69 72 73 |r is in |the firs|
|00001570| 74 20 74 77 6f 0a 20 20 | 20 20 20 20 20 20 6f 63 |t two. | oc|
|00001580| 74 65 74 73 2e 20 20 54 | 68 69 73 20 61 6c 6c 6f |tets. T|his allo|
|00001590| 77 73 20 66 6f 72 20 31 | 36 33 32 30 20 6e 65 74 |ws for 1|6320 net|
|000015a0| 73 20 77 69 74 68 20 36 | 35 30 32 34 20 68 6f 73 |s with 6|5024 hos|
|000015b0| 74 73 20 65 61 63 68 2e | 0a 0a 5c 64 69 74 65 6d |ts each.|..\ditem|
|000015c0| 5b 43 6c 61 73 73 20 43 | 5d 0a 20 20 20 20 20 20 |[Class C|]. |
|000015d0| 20 20 43 6c 61 73 73 20 | 43 20 6e 65 74 77 6f 72 | Class |C networ|
|000015e0| 6b 73 20 72 61 6e 67 65 | 20 66 72 6f 6d 20 5c 68 |ks range| from \h|
|000015f0| 6f 73 74 7b 31 39 32 2e | 30 2e 30 2e 30 7d 20 74 |ost{192.|0.0.0} t|
|00001600| 68 72 6f 75 67 68 0a 20 | 20 20 20 20 20 20 20 5c |hrough. | \|
|00001610| 68 6f 73 74 7b 32 32 33 | 2e 32 35 35 2e 32 35 35 |host{223|.255.255|
|00001620| 2e 30 7d 2c 20 77 69 74 | 68 20 74 68 65 20 6e 65 |.0}, wit|h the ne|
|00001630| 74 77 6f 72 6b 20 6e 75 | 6d 62 65 72 20 62 65 69 |twork nu|mber bei|
|00001640| 6e 67 20 63 6f 6e 74 61 | 69 6e 65 64 20 69 6e 0a |ng conta|ined in.|
|00001650| 20 20 20 20 20 20 20 20 | 74 68 65 20 66 69 72 73 | |the firs|
|00001660| 74 20 74 68 72 65 65 20 | 6f 63 74 65 74 73 2e 20 |t three |octets. |
|00001670| 54 68 69 73 20 61 6c 6c | 6f 77 73 20 66 6f 72 20 |This all|ows for |
|00001680| 6e 65 61 72 6c 79 20 32 | 7e 6d 69 6c 6c 69 6f 6e |nearly 2|~million|
|00001690| 0a 20 20 20 20 20 20 20 | 20 6e 65 74 77 6f 72 6b |. | network|
|000016a0| 73 20 77 69 74 68 20 75 | 70 20 74 6f 20 32 35 34 |s with u|p to 254|
|000016b0| 20 68 6f 73 74 73 2e 0a | 0a 5c 64 69 74 65 6d 5b | hosts..|.\ditem[|
|000016c0| 43 6c 61 73 73 65 73 20 | 44 2c 20 45 2c 20 61 6e |Classes |D, E, an|
|000016d0| 64 20 46 5d 0a 20 20 20 | 20 20 20 20 20 41 64 64 |d F]. | Add|
|000016e0| 72 65 73 73 65 73 20 66 | 61 6c 6c 69 6e 67 20 69 |resses f|alling i|
|000016f0| 6e 74 6f 20 74 68 65 20 | 72 61 6e 67 65 20 6f 66 |nto the |range of|
|00001700| 20 5c 68 6f 73 74 7b 32 | 32 34 2e 30 2e 30 2e 30 | \host{2|24.0.0.0|
|00001710| 7d 20 74 68 72 6f 75 67 | 68 0a 20 20 20 20 20 20 |} throug|h. |
|00001720| 20 20 5c 68 6f 73 74 7b | 32 35 34 2e 30 2e 30 2e | \host{|254.0.0.|
|00001730| 30 7d 20 61 72 65 20 65 | 69 74 68 65 72 20 65 78 |0} are e|ither ex|
|00001740| 70 65 72 69 6d 65 6e 74 | 61 6c 2c 20 6f 72 20 61 |periment|al, or a|
|00001750| 72 65 20 72 65 73 65 72 | 76 65 64 20 66 6f 72 0a |re reser|ved for.|
|00001760| 20 20 20 20 20 20 20 20 | 66 75 74 75 72 65 20 75 | |future u|
|00001770| 73 65 20 61 6e 64 20 64 | 6f 6e 27 74 20 73 70 65 |se and d|on't spe|
|00001780| 63 69 66 79 20 61 6e 79 | 20 6e 65 74 77 6f 72 6b |cify any| network|
|00001790| 2e 0a 0a 5c 65 6e 64 7b | 64 69 73 70 69 74 65 6d |...\end{|dispitem|
|000017a0| 73 7d 0a 0a 0a 49 66 20 | 77 65 20 67 6f 20 62 61 |s}...If |we go ba|
|000017b0| 63 6b 20 74 6f 20 74 68 | 65 20 65 78 61 6d 70 6c |ck to th|e exampl|
|000017c0| 65 20 69 6e 20 74 68 65 | 20 70 72 65 76 69 6f 75 |e in the| previou|
|000017d0| 73 20 63 68 61 70 74 65 | 72 2c 20 77 65 20 66 69 |s chapte|r, we fi|
|000017e0| 6e 64 20 74 68 61 74 0a | 5c 68 6f 73 74 7b 31 34 |nd that.|\host{14|
|000017f0| 39 2e 37 36 2e 31 32 2e | 34 7d 2c 20 74 68 65 20 |9.76.12.|4}, the |
|00001800| 61 64 64 72 65 73 73 20 | 6f 66 20 5c 68 6f 73 74 |address |of \host|
|00001810| 7b 71 75 61 72 6b 7d 2c | 20 72 65 66 65 72 73 20 |{quark},| refers |
|00001820| 74 6f 20 68 6f 73 74 0a | 5c 68 6f 73 74 7b 31 32 |to host.|\host{12|
|00001830| 2e 34 7d 20 6f 6e 20 74 | 68 65 20 63 6c 61 73 73 |.4} on t|he class|
|00001840| 7e 42 20 6e 65 74 77 6f | 72 6b 20 5c 68 6f 73 74 |~B netwo|rk \host|
|00001850| 7b 31 34 39 2e 37 36 2e | 30 2e 30 7d 2e 0a 0a 0a |{149.76.|0.0}....|
|00001860| 5c 69 6e 64 65 78 7b 61 | 64 64 72 65 73 73 21 62 |\index{a|ddress!b|
|00001870| 72 6f 61 64 63 61 73 74 | 7d 0a 59 6f 75 20 6d 61 |roadcast|}.You ma|
|00001880| 79 20 68 61 76 65 20 6e | 6f 74 69 63 65 64 20 74 |y have n|oticed t|
|00001890| 68 61 74 20 69 6e 20 74 | 68 65 20 61 62 6f 76 65 |hat in t|he above|
|000018a0| 20 6c 69 73 74 20 6e 6f | 74 20 61 6c 6c 20 70 6f | list no|t all po|
|000018b0| 73 73 69 62 6c 65 20 76 | 61 6c 75 65 73 20 77 65 |ssible v|alues we|
|000018c0| 72 65 0a 61 6c 6c 6f 77 | 65 64 20 66 6f 72 20 65 |re.allow|ed for e|
|000018d0| 61 63 68 20 6f 63 74 65 | 74 20 69 6e 20 74 68 65 |ach octe|t in the|
|000018e0| 20 68 6f 73 74 20 70 61 | 72 74 2e 20 54 68 69 73 | host pa|rt. This|
|000018f0| 20 69 73 20 62 65 63 61 | 75 73 65 20 68 6f 73 74 | is beca|use host|
|00001900| 20 6e 75 6d 62 65 72 73 | 0a 77 69 74 68 20 6f 63 | numbers|.with oc|
|00001910| 74 65 74 73 20 61 6c 6c | 20 5c 68 6f 73 74 7b 30 |tets all| \host{0|
|00001920| 7d 20 6f 72 20 61 6c 6c | 20 5c 68 6f 73 74 7b 32 |} or all| \host{2|
|00001930| 35 35 7d 20 61 72 65 20 | 72 65 73 65 72 76 65 64 |55} are |reserved|
|00001940| 20 66 6f 72 20 73 70 65 | 63 69 61 6c 20 70 75 72 | for spe|cial pur|
|00001950| 70 6f 73 65 73 2e 0a 41 | 6e 20 61 64 64 72 65 73 |poses..A|n addres|
|00001960| 73 20 77 68 65 72 65 20 | 61 6c 6c 20 68 6f 73 74 |s where |all host|
|00001970| 20 70 61 72 74 20 62 69 | 74 73 20 61 72 65 20 7a | part bi|ts are z|
|00001980| 65 72 6f 20 72 65 66 65 | 72 73 20 74 6f 20 74 68 |ero refe|rs to th|
|00001990| 65 20 6e 65 74 77 6f 72 | 6b 2c 20 61 6e 64 0a 6f |e networ|k, and.o|
|000019a0| 6e 65 20 77 68 65 72 65 | 20 61 6c 6c 20 62 69 74 |ne where| all bit|
|000019b0| 73 20 6f 66 20 74 68 65 | 20 68 6f 73 74 20 70 61 |s of the| host pa|
|000019c0| 72 74 20 61 72 65 20 31 | 20 69 73 20 63 61 6c 6c |rt are 1| is call|
|000019d0| 65 64 20 61 20 62 72 6f | 61 64 63 61 73 74 20 61 |ed a bro|adcast a|
|000019e0| 64 64 72 65 73 73 2e 0a | 54 68 69 73 20 72 65 66 |ddress..|This ref|
|000019f0| 65 72 73 20 74 6f 20 61 | 6c 6c 20 68 6f 73 74 73 |ers to a|ll hosts|
|00001a00| 20 6f 6e 20 74 68 65 20 | 73 70 65 63 69 66 69 65 | on the |specifie|
|00001a10| 64 20 6e 65 74 77 6f 72 | 6b 20 73 69 6d 75 6c 74 |d networ|k simult|
|00001a20| 61 6e 65 6f 75 73 6c 79 | 2e 0a 54 68 75 73 2c 20 |aneously|..Thus, |
|00001a30| 5c 68 6f 73 74 7b 31 34 | 39 2e 37 36 2e 32 35 35 |\host{14|9.76.255|
|00001a40| 2e 32 35 35 7d 20 69 73 | 20 6e 6f 74 20 61 20 76 |.255} is| not a v|
|00001a50| 61 6c 69 64 20 68 6f 73 | 74 20 61 64 64 72 65 73 |alid hos|t addres|
|00001a60| 73 2c 20 62 75 74 20 72 | 65 66 65 72 73 0a 74 6f |s, but r|efers.to|
|00001a70| 20 61 6c 6c 20 68 6f 73 | 74 73 20 6f 6e 20 6e 65 | all hos|ts on ne|
|00001a80| 74 77 6f 72 6b 20 5c 68 | 6f 73 74 7b 31 34 39 2e |twork \h|ost{149.|
|00001a90| 37 36 2e 30 2e 30 7d 2e | 0a 0a 0a 5c 69 6e 64 65 |76.0.0}.|...\inde|
|00001aa0| 78 7b 49 50 21 64 65 66 | 61 75 6c 74 20 72 6f 75 |x{IP!def|ault rou|
|00001ab0| 74 65 7d 0a 5c 69 6e 64 | 65 78 7b 64 65 66 61 75 |te}.\ind|ex{defau|
|00001ac0| 6c 74 20 49 50 20 72 6f | 75 74 65 7c 73 65 65 20 |lt IP ro|ute|see |
|00001ad0| 7b 72 6f 75 74 65 2c 20 | 64 65 66 61 75 6c 74 7d |{route, |default}|
|00001ae0| 7d 0a 5c 69 6e 64 65 78 | 7b 72 6f 75 74 65 2c 20 |}.\index|{route, |
|00001af0| 64 65 66 61 75 6c 74 7d | 0a 5c 69 6e 64 65 78 7b |default}|.\index{|
|00001b00| 6c 6f 6f 70 62 61 63 6b | 21 61 64 64 72 65 73 73 |loopback|!address|
|00001b10| 7d 0a 54 68 65 72 65 20 | 61 72 65 20 61 6c 73 6f |}.There |are also|
|00001b20| 20 74 77 6f 20 6e 65 74 | 77 6f 72 6b 20 61 64 64 | two net|work add|
|00001b30| 72 65 73 73 65 73 20 74 | 68 61 74 20 61 72 65 20 |resses t|hat are |
|00001b40| 72 65 73 65 72 76 65 64 | 2c 20 5c 68 6f 73 74 7b |reserved|, \host{|
|00001b50| 30 2e 30 2e 30 2e 30 7d | 20 61 6e 64 0a 5c 68 6f |0.0.0.0}| and.\ho|
|00001b60| 73 74 7b 31 32 37 2e 30 | 2e 30 2e 30 7d 2e 20 54 |st{127.0|.0.0}. T|
|00001b70| 68 65 20 66 69 72 73 74 | 20 69 73 20 63 61 6c 6c |he first| is call|
|00001b80| 65 64 20 74 68 65 20 5c | 65 6d 70 68 7b 64 65 66 |ed the \|emph{def|
|00001b90| 61 75 6c 74 20 72 6f 75 | 74 65 7d 2c 20 74 68 65 |ault rou|te}, the|
|00001ba0| 20 6c 61 74 74 65 72 0a | 74 68 65 20 5c 65 6d 70 | latter.|the \emp|
|00001bb0| 68 7b 6c 6f 6f 70 62 61 | 63 6b 20 61 64 64 72 65 |h{loopba|ck addre|
|00001bc0| 73 73 7d 2e 20 54 68 65 | 20 64 65 66 61 75 6c 74 |ss}. The| default|
|00001bd0| 20 72 6f 75 74 65 20 68 | 61 73 20 73 6f 6d 65 74 | route h|as somet|
|00001be0| 68 69 6e 67 20 74 6f 20 | 64 6f 20 77 69 74 68 20 |hing to |do with |
|00001bf0| 74 68 65 0a 77 61 79 20 | 49 50 20 72 6f 75 74 65 |the.way |IP route|
|00001c00| 73 20 64 61 74 61 67 72 | 61 6d 73 2c 20 77 68 69 |s datagr|ams, whi|
|00001c10| 63 68 20 77 69 6c 6c 20 | 62 65 20 64 65 61 6c 74 |ch will |be dealt|
|00001c20| 20 77 69 74 68 20 62 65 | 6c 6f 77 2e 0a 0a 0a 4e | with be|low....N|
|00001c30| 65 74 77 6f 72 6b 20 5c | 68 6f 73 74 7b 31 32 37 |etwork \|host{127|
|00001c40| 2e 30 2e 30 2e 30 7d 20 | 69 73 20 72 65 73 65 72 |.0.0.0} |is reser|
|00001c50| 76 65 64 20 66 6f 72 20 | 49 50 20 74 72 61 66 66 |ved for |IP traff|
|00001c60| 69 63 20 6c 6f 63 61 6c | 20 74 6f 20 79 6f 75 72 |ic local| to your|
|00001c70| 0a 68 6f 73 74 2e 20 20 | 55 73 75 61 6c 6c 79 2c |.host. |Usually,|
|00001c80| 20 61 64 64 72 65 73 73 | 20 5c 68 6f 73 74 7b 31 | address| \host{1|
|00001c90| 32 37 2e 30 2e 30 2e 31 | 7d 20 77 69 6c 6c 20 62 |27.0.0.1|} will b|
|00001ca0| 65 20 61 73 73 69 67 6e | 65 64 20 74 6f 20 61 20 |e assign|ed to a |
|00001cb0| 73 70 65 63 69 61 6c 0a | 69 6e 74 65 72 66 61 63 |special.|interfac|
|00001cc0| 65 20 6f 6e 20 79 6f 75 | 72 20 68 6f 73 74 2c 20 |e on you|r host, |
|00001cd0| 74 68 65 20 73 6f 2d 63 | 61 6c 6c 65 64 20 5c 65 |the so-c|alled \e|
|00001ce0| 6d 70 68 7b 6c 6f 6f 70 | 62 61 63 6b 20 69 6e 74 |mph{loop|back int|
|00001cf0| 65 72 66 61 63 65 7d 2c | 20 77 68 69 63 68 0a 61 |erface},| which.a|
|00001d00| 63 74 73 20 6c 69 6b 65 | 20 61 20 63 6c 6f 73 65 |cts like| a close|
|00001d10| 64 20 63 69 72 63 75 69 | 74 2e 20 41 6e 79 20 49 |d circui|t. Any I|
|00001d20| 50 20 70 61 63 6b 65 74 | 20 68 61 6e 64 65 64 20 |P packet| handed |
|00001d30| 74 6f 20 69 74 20 66 72 | 6f 6d 20 54 43 50 20 6f |to it fr|om TCP o|
|00001d40| 72 20 55 44 50 0a 77 69 | 6c 6c 20 62 65 20 72 65 |r UDP.wi|ll be re|
|00001d50| 74 75 72 6e 65 64 20 74 | 6f 20 74 68 65 6d 20 61 |turned t|o them a|
|00001d60| 73 20 69 66 20 69 74 20 | 68 61 64 20 6a 75 73 74 |s if it |had just|
|00001d70| 20 61 72 72 69 76 65 64 | 20 66 72 6f 6d 20 73 6f | arrived| from so|
|00001d80| 6d 65 20 6e 65 74 77 6f | 72 6b 2e 0a 54 68 69 73 |me netwo|rk..This|
|00001d90| 20 61 6c 6c 6f 77 73 20 | 79 6f 75 20 74 6f 20 64 | allows |you to d|
|00001da0| 65 76 65 6c 6f 70 20 61 | 6e 64 20 74 65 73 74 20 |evelop a|nd test |
|00001db0| 6e 65 74 77 6f 72 6b 69 | 6e 67 20 73 6f 66 74 77 |networki|ng softw|
|00001dc0| 61 72 65 20 77 69 74 68 | 6f 75 74 20 65 76 65 72 |are with|out ever|
|00001dd0| 0a 75 73 69 6e 67 20 61 | 20 60 60 72 65 61 6c 27 |.using a| ``real'|
|00001de0| 27 20 6e 65 74 77 6f 72 | 6b 2e 20 41 6e 6f 74 68 |' networ|k. Anoth|
|00001df0| 65 72 20 75 73 65 66 75 | 6c 20 61 70 70 6c 69 63 |er usefu|l applic|
|00001e00| 61 74 69 6f 6e 20 69 73 | 20 77 68 65 6e 20 79 6f |ation is| when yo|
|00001e10| 75 20 77 61 6e 74 0a 74 | 6f 20 75 73 65 20 6e 65 |u want.t|o use ne|
|00001e20| 74 77 6f 72 6b 69 6e 67 | 20 73 6f 66 74 77 61 72 |tworking| softwar|
|00001e30| 65 20 6f 6e 20 61 20 73 | 74 61 6e 64 61 6c 6f 6e |e on a s|tandalon|
|00001e40| 65 20 68 6f 73 74 2e 20 | 54 68 69 73 20 6d 61 79 |e host. |This may|
|00001e50| 20 6e 6f 74 20 62 65 20 | 61 73 0a 75 6e 63 6f 6d | not be |as.uncom|
|00001e60| 6d 6f 6e 20 61 73 20 69 | 74 20 73 6f 75 6e 64 73 |mon as i|t sounds|
|00001e70| 3b 20 66 6f 72 20 69 6e | 73 74 61 6e 63 65 2c 20 |; for in|stance, |
|00001e80| 6d 61 6e 79 20 55 55 43 | 50 20 73 69 74 65 73 20 |many UUC|P sites |
|00001e90| 64 6f 6e 27 74 20 68 61 | 76 65 20 49 50 0a 63 6f |don't ha|ve IP.co|
|00001ea0| 6e 6e 65 63 74 69 76 69 | 74 79 20 61 74 20 61 6c |nnectivi|ty at al|
|00001eb0| 6c 2c 20 62 75 74 20 73 | 74 69 6c 6c 20 77 61 6e |l, but s|till wan|
|00001ec0| 74 20 74 6f 20 72 75 6e | 20 74 68 65 20 49 4e 4e |t to run| the INN|
|00001ed0| 20 6e 65 77 73 20 73 79 | 73 74 65 6d 0a 6e 65 76 | news sy|stem.nev|
|00001ee0| 65 72 74 68 65 6c 65 73 | 73 2e 20 46 6f 72 20 70 |ertheles|s. For p|
|00001ef0| 72 6f 70 65 72 20 6f 70 | 65 72 61 74 69 6f 6e 20 |roper op|eration |
|00001f00| 6f 6e 20 5c 6c 69 6e 75 | 78 7b 7d 2c 20 49 4e 4e |on \linu|x{}, INN|
|00001f10| 20 72 65 71 75 69 72 65 | 73 20 74 68 65 0a 6c 6f | require|s the.lo|
|00001f20| 6f 70 62 61 63 6b 20 69 | 6e 74 65 72 66 61 63 65 |opback i|nterface|
|00001f30| 2e 0a 0a 0a 5c 69 6e 64 | 65 78 7b 49 50 21 61 64 |....\ind|ex{IP!ad|
|00001f40| 64 72 65 73 73 7c 29 7d | 0a 0a 0a 5c 73 65 63 74 |dress|)}|...\sect|
|00001f50| 69 6f 6e 7b 41 64 64 72 | 65 73 73 20 52 65 73 6f |ion{Addr|ess Reso|
|00001f60| 6c 75 74 69 6f 6e 7d 0a | 25 25 25 25 25 25 25 25 |lution}.|%%%%%%%%|
|00001f70| 25 25 25 25 25 25 25 25 | 25 25 25 25 25 25 25 25 |%%%%%%%%|%%%%%%%%|
|00001f80| 25 25 25 25 25 25 25 25 | 25 25 25 25 25 25 25 25 |%%%%%%%%|%%%%%%%%|
|00001f90| 25 25 25 25 25 25 25 25 | 25 25 25 25 25 25 25 25 |%%%%%%%%|%%%%%%%%|
|00001fa0| 25 25 25 25 25 25 25 25 | 25 0a 5c 6c 61 62 65 6c |%%%%%%%%|%.\label|
|00001fb0| 7b 74 63 70 69 70 2e 61 | 72 70 7d 0a 5c 69 6e 64 |{tcpip.a|rp}.\ind|
|00001fc0| 65 78 7b 41 64 64 72 65 | 73 73 20 52 65 73 6f 6c |ex{Addre|ss Resol|
|00001fd0| 75 74 69 6f 6e 20 50 72 | 6f 74 6f 63 6f 6c 7c 73 |ution Pr|otocol|s|
|00001fe0| 65 65 20 7b 41 52 50 7d | 7d 0a 5c 69 6e 64 65 78 |ee {ARP}|}.\index|
|00001ff0| 7b 52 65 76 65 72 73 65 | 20 41 64 64 72 65 73 73 |{Reverse| Address|
|00002000| 20 52 65 73 6f 6c 75 74 | 69 6f 6e 20 50 72 6f 74 | Resolut|ion Prot|
|00002010| 6f 63 6f 6c 7c 73 65 65 | 20 7b 52 41 52 50 7d 7d |ocol|see| {RARP}}|
|00002020| 0a 5c 69 6e 64 65 78 7b | 41 52 50 7c 28 7d 0a 5c |.\index{|ARP|(}.\|
|00002030| 69 6e 64 65 78 7b 45 74 | 68 65 72 6e 65 74 21 61 |index{Et|hernet!a|
|00002040| 64 64 72 65 73 73 7d 0a | 0a 4e 6f 77 20 74 68 61 |ddress}.|.Now tha|
|00002050| 74 20 79 6f 75 27 76 65 | 20 73 65 65 6e 20 68 6f |t you've| seen ho|
|00002060| 77 20 49 50 7e 61 64 64 | 72 65 73 73 65 73 20 61 |w IP~add|resses a|
|00002070| 72 65 20 6d 61 64 65 20 | 75 70 2c 20 79 6f 75 20 |re made |up, you |
|00002080| 6d 61 79 20 62 65 20 77 | 6f 6e 64 65 72 69 6e 67 |may be w|ondering|
|00002090| 0a 68 6f 77 20 74 68 65 | 79 20 61 72 65 20 75 73 |.how the|y are us|
|000020a0| 65 64 20 6f 6e 20 61 6e | 20 45 74 68 65 72 6e 65 |ed on an| Etherne|
|000020b0| 74 20 74 6f 20 61 64 64 | 72 65 73 73 20 64 69 66 |t to add|ress dif|
|000020c0| 66 65 72 65 6e 74 20 68 | 6f 73 74 73 2e 20 41 66 |ferent h|osts. Af|
|000020d0| 74 65 72 20 61 6c 6c 2c | 0a 74 68 65 20 45 74 68 |ter all,|.the Eth|
|000020e0| 65 72 6e 65 74 20 70 72 | 6f 74 6f 63 6f 6c 20 69 |ernet pr|otocol i|
|000020f0| 64 65 6e 74 69 66 69 65 | 73 20 68 6f 73 74 73 20 |dentifie|s hosts |
|00002100| 62 79 20 61 20 73 69 78 | 2d 6f 63 74 65 74 20 6e |by a six|-octet n|
|00002110| 75 6d 62 65 72 20 74 68 | 61 74 20 68 61 73 0a 61 |umber th|at has.a|
|00002120| 62 73 6f 6c 75 74 65 6c | 79 20 6e 6f 74 68 69 6e |bsolutel|y nothin|
|00002130| 67 20 69 6e 20 63 6f 6d | 6d 6f 6e 20 77 69 74 68 |g in com|mon with|
|00002140| 20 61 6e 20 49 50 7e 61 | 64 64 72 65 73 73 2c 20 | an IP~a|ddress, |
|00002150| 64 6f 65 73 6e 27 74 20 | 69 74 3f 0a 0a 0a 5c 69 |doesn't |it?...\i|
|00002160| 6e 64 65 78 7b 68 61 6d | 20 72 61 64 69 6f 7d 0a |ndex{ham| radio}.|
|00002170| 52 69 67 68 74 2e 20 54 | 68 61 74 27 73 20 77 68 |Right. T|hat's wh|
|00002180| 79 20 61 20 6d 65 63 68 | 61 6e 69 73 6d 20 69 73 |y a mech|anism is|
|00002190| 20 6e 65 65 64 65 64 20 | 74 6f 20 6d 61 70 20 49 | needed |to map I|
|000021a0| 50 7e 61 64 64 72 65 73 | 73 65 73 20 6f 6e 74 6f |P~addres|ses onto|
|000021b0| 0a 45 74 68 65 72 6e 65 | 74 20 61 64 64 72 65 73 |.Etherne|t addres|
|000021c0| 73 65 73 2e 20 54 68 69 | 73 20 69 73 20 74 68 65 |ses. Thi|s is the|
|000021d0| 20 73 6f 2d 63 61 6c 6c | 65 64 20 5c 65 6d 70 68 | so-call|ed \emph|
|000021e0| 7b 41 64 64 72 65 73 73 | 20 52 65 73 6f 6c 75 74 |{Address| Resolut|
|000021f0| 69 6f 6e 0a 50 72 6f 74 | 6f 63 6f 6c 7d 2c 20 6f |ion.Prot|ocol}, o|
|00002200| 72 20 41 52 50 2e 20 49 | 6e 20 66 61 63 74 2c 20 |r ARP. I|n fact, |
|00002210| 41 52 50 20 69 73 20 6e | 6f 74 20 63 6f 6e 66 69 |ARP is n|ot confi|
|00002220| 6e 65 64 20 74 6f 20 45 | 74 68 65 72 6e 65 74 73 |ned to E|thernets|
|00002230| 20 61 74 20 61 6c 6c 2c | 0a 62 75 74 20 69 73 20 | at all,|.but is |
|00002240| 75 73 65 64 20 6f 6e 20 | 6f 74 68 65 72 20 74 79 |used on |other ty|
|00002250| 70 65 73 20 6e 65 74 77 | 6f 72 6b 73 20 73 75 63 |pes netw|orks suc|
|00002260| 68 20 61 73 20 68 61 6d | 20 72 61 64 69 6f 20 61 |h as ham| radio a|
|00002270| 73 20 77 65 6c 6c 2e 20 | 20 54 68 65 0a 69 64 65 |s well. | The.ide|
|00002280| 61 20 75 6e 64 65 72 6c | 79 69 6e 67 20 41 52 50 |a underl|ying ARP|
|00002290| 20 69 73 20 65 78 61 63 | 74 6c 79 20 77 68 61 74 | is exac|tly what|
|000022a0| 20 6d 6f 73 74 20 70 65 | 6f 70 6c 65 20 64 6f 20 | most pe|ople do |
|000022b0| 77 68 65 6e 20 74 68 65 | 79 20 68 61 76 65 20 74 |when the|y have t|
|000022c0| 6f 0a 66 69 6e 64 20 4d | 72 2e 7e 58 2e 7e 41 6d |o.find M|r.~X.~Am|
|000022d0| 70 6c 65 20 69 6e 20 61 | 20 74 68 72 6f 6e 67 20 |ple in a| throng |
|000022e0| 6f 66 20 31 35 30 7e 70 | 65 6f 70 6c 65 3a 20 74 |of 150~p|eople: t|
|000022f0| 68 65 79 20 67 6f 20 72 | 6f 75 6e 64 2c 20 63 61 |hey go r|ound, ca|
|00002300| 6c 6c 69 6e 67 0a 6f 75 | 74 20 68 69 73 20 6e 61 |lling.ou|t his na|
|00002310| 6d 65 2c 20 63 6f 6e 66 | 69 64 65 6e 74 20 74 68 |me, conf|ident th|
|00002320| 61 74 20 68 65 20 77 69 | 6c 6c 20 72 65 73 70 6f |at he wi|ll respo|
|00002330| 6e 64 20 69 66 20 68 65 | 27 73 20 74 68 65 72 65 |nd if he|'s there|
|00002340| 2e 0a 0a 0a 57 68 65 6e | 20 41 52 50 20 77 61 6e |....When| ARP wan|
|00002350| 74 73 20 74 6f 20 66 69 | 6e 64 20 6f 75 74 20 74 |ts to fi|nd out t|
|00002360| 68 65 20 45 74 68 65 72 | 6e 65 74 20 61 64 64 72 |he Ether|net addr|
|00002370| 65 73 73 20 63 6f 72 72 | 65 73 70 6f 6e 64 69 6e |ess corr|espondin|
|00002380| 67 20 74 6f 20 61 0a 67 | 69 76 65 6e 20 49 50 7e |g to a.g|iven IP~|
|00002390| 61 64 64 72 65 73 73 2c | 20 69 74 20 75 73 65 73 |address,| it uses|
|000023a0| 20 61 20 66 65 61 74 75 | 72 65 20 6f 66 20 45 74 | a featu|re of Et|
|000023b0| 68 65 72 6e 65 74 20 6b | 6e 6f 77 6e 20 61 73 0a |hernet k|nown as.|
|000023c0| 60 60 62 72 6f 61 64 63 | 61 73 74 69 6e 67 2c 27 |``broadc|asting,'|
|000023d0| 27 20 77 68 65 72 65 20 | 61 20 64 61 74 61 67 72 |' where |a datagr|
|000023e0| 61 6d 20 69 73 20 61 64 | 64 72 65 73 73 65 64 20 |am is ad|dressed |
|000023f0| 74 6f 20 61 6c 6c 20 73 | 74 61 74 69 6f 6e 73 20 |to all s|tations |
|00002400| 6f 6e 20 74 68 65 0a 6e | 65 74 77 6f 72 6b 20 73 |on the.n|etwork s|
|00002410| 69 6d 75 6c 74 61 6e 65 | 6f 75 73 6c 79 2e 20 54 |imultane|ously. T|
|00002420| 68 65 20 62 72 6f 61 64 | 63 61 73 74 20 64 61 74 |he broad|cast dat|
|00002430| 61 67 72 61 6d 20 73 65 | 6e 74 20 62 79 20 41 52 |agram se|nt by AR|
|00002440| 50 20 63 6f 6e 74 61 69 | 6e 73 20 61 0a 71 75 65 |P contai|ns a.que|
|00002450| 72 79 20 66 6f 72 20 74 | 68 65 20 49 50 7e 61 64 |ry for t|he IP~ad|
|00002460| 64 72 65 73 73 2e 20 45 | 61 63 68 20 72 65 63 65 |dress. E|ach rece|
|00002470| 69 76 69 6e 67 20 68 6f | 73 74 20 63 6f 6d 70 61 |iving ho|st compa|
|00002480| 72 65 73 20 74 68 69 73 | 20 74 6f 20 69 74 73 20 |res this| to its |
|00002490| 6f 77 6e 0a 49 50 7e 61 | 64 64 72 65 73 73 2c 20 |own.IP~a|ddress, |
|000024a0| 61 6e 64 20 69 66 20 69 | 74 20 6d 61 74 63 68 65 |and if i|t matche|
|000024b0| 73 2c 20 72 65 74 75 72 | 6e 73 20 61 6e 20 41 52 |s, retur|ns an AR|
|000024c0| 50 20 72 65 70 6c 79 20 | 74 6f 20 74 68 65 20 69 |P reply |to the i|
|000024d0| 6e 71 75 69 72 69 6e 67 | 0a 68 6f 73 74 2e 20 54 |nquiring|.host. T|
|000024e0| 68 65 20 69 6e 71 75 69 | 72 69 6e 67 20 68 6f 73 |he inqui|ring hos|
|000024f0| 74 20 63 61 6e 20 6e 6f | 77 20 65 78 74 72 61 63 |t can no|w extrac|
|00002500| 74 20 74 68 65 20 73 65 | 6e 64 65 72 27 73 20 45 |t the se|nder's E|
|00002510| 74 68 65 72 6e 65 74 20 | 61 64 64 72 65 73 73 0a |thernet |address.|
|00002520| 66 72 6f 6d 20 74 68 65 | 20 72 65 70 6c 79 2e 0a |from the| reply..|
|00002530| 0a 0a 4f 66 20 63 6f 75 | 72 73 65 20 79 6f 75 20 |..Of cou|rse you |
|00002540| 6d 69 67 68 74 20 77 6f | 6e 64 65 72 20 68 6f 77 |might wo|nder how|
|00002550| 20 61 20 68 6f 73 74 20 | 6d 61 79 20 6b 6e 6f 77 | a host |may know|
|00002560| 20 6f 6e 20 77 68 69 63 | 68 20 6f 66 20 74 68 65 | on whic|h of the|
|00002570| 0a 7a 69 6c 6c 69 6f 6e | 73 20 6f 66 20 45 74 68 |.zillion|s of Eth|
|00002580| 65 72 6e 65 74 73 20 74 | 68 72 6f 75 67 68 6f 75 |ernets t|hroughou|
|00002590| 74 20 74 68 65 20 77 6f | 72 6c 64 20 69 74 20 69 |t the wo|rld it i|
|000025a0| 73 20 74 6f 20 66 69 6e | 64 20 74 68 65 20 64 65 |s to fin|d the de|
|000025b0| 73 69 72 65 64 0a 68 6f | 73 74 2c 20 61 6e 64 20 |sired.ho|st, and |
|000025c0| 77 68 79 20 74 68 69 73 | 20 73 68 6f 75 6c 64 20 |why this| should |
|000025d0| 65 76 65 6e 20 62 65 20 | 61 6e 20 45 74 68 65 72 |even be |an Ether|
|000025e0| 6e 65 74 2e 20 54 68 65 | 73 65 20 71 75 65 73 74 |net. The|se quest|
|000025f0| 69 6f 6e 73 20 61 6c 6c | 0a 69 6e 76 6f 6c 76 65 |ions all|.involve|
|00002600| 20 77 68 61 74 20 69 73 | 20 63 61 6c 6c 65 64 20 | what is| called |
|00002610| 72 6f 75 74 69 6e 67 2c | 20 6e 61 6d 65 6c 79 20 |routing,| namely |
|00002620| 66 69 6e 64 69 6e 67 20 | 6f 75 74 20 74 68 65 20 |finding |out the |
|00002630| 70 68 79 73 69 63 61 6c | 0a 6c 6f 63 61 74 69 6f |physical|.locatio|
|00002640| 6e 20 6f 66 20 61 20 68 | 6f 73 74 20 69 6e 20 61 |n of a h|ost in a|
|00002650| 20 6e 65 74 77 6f 72 6b | 2e 20 20 54 68 69 73 20 | network|. This |
|00002660| 77 69 6c 6c 20 62 65 20 | 74 68 65 20 74 6f 70 69 |will be |the topi|
|00002670| 63 20 6f 66 20 74 68 65 | 0a 66 6f 6c 6c 6f 77 69 |c of the|.followi|
|00002680| 6e 67 20 73 65 63 74 69 | 6f 6e 2e 0a 0a 0a 46 6f |ng secti|on....Fo|
|00002690| 72 20 61 20 6d 6f 6d 65 | 6e 74 2c 20 6c 65 74 27 |r a mome|nt, let'|
|000026a0| 73 20 74 61 6c 6b 20 61 | 62 6f 75 74 20 41 52 50 |s talk a|bout ARP|
|000026b0| 20 61 20 6c 69 74 74 6c | 65 20 6c 6f 6e 67 65 72 | a littl|e longer|
|000026c0| 2e 20 4f 6e 63 65 20 61 | 20 68 6f 73 74 20 68 61 |. Once a| host ha|
|000026d0| 73 0a 64 69 73 63 6f 76 | 65 72 65 64 20 61 6e 20 |s.discov|ered an |
|000026e0| 45 74 68 65 72 6e 65 74 | 20 61 64 64 72 65 73 73 |Ethernet| address|
|000026f0| 2c 20 69 74 20 73 74 6f | 72 65 73 20 69 74 20 69 |, it sto|res it i|
|00002700| 6e 20 69 74 73 20 41 52 | 50 20 63 61 63 68 65 2c |n its AR|P cache,|
|00002710| 0a 73 6f 20 74 68 61 74 | 20 69 74 20 64 6f 65 73 |.so that| it does|
|00002720| 6e 27 74 20 68 61 76 65 | 20 74 6f 20 71 75 65 72 |n't have| to quer|
|00002730| 79 20 66 6f 72 20 69 74 | 20 74 68 65 20 6e 65 78 |y for it| the nex|
|00002740| 74 20 74 69 6d 65 20 69 | 74 20 77 61 6e 74 73 20 |t time i|t wants |
|00002750| 74 6f 0a 73 65 6e 64 20 | 61 20 64 61 74 61 67 72 |to.send |a datagr|
|00002760| 61 6d 20 74 6f 20 74 68 | 65 20 68 6f 73 74 20 69 |am to th|e host i|
|00002770| 6e 20 71 75 65 73 74 69 | 6f 6e 2e 20 48 6f 77 65 |n questi|on. Howe|
|00002780| 76 65 72 2c 20 69 74 20 | 69 73 20 75 6e 77 69 73 |ver, it |is unwis|
|00002790| 65 20 74 6f 0a 6b 65 65 | 70 20 74 68 69 73 20 69 |e to.kee|p this i|
|000027a0| 6e 66 6f 72 6d 61 74 69 | 6f 6e 20 66 6f 72 65 76 |nformati|on forev|
|000027b0| 65 72 3b 20 66 6f 72 20 | 69 6e 73 74 61 6e 63 65 |er; for |instance|
|000027c0| 2c 20 74 68 65 20 72 65 | 6d 6f 74 65 20 68 6f 73 |, the re|mote hos|
|000027d0| 74 27 73 0a 45 74 68 65 | 72 6e 65 74 20 63 61 72 |t's.Ethe|rnet car|
|000027e0| 64 20 6d 61 79 20 62 65 | 20 72 65 70 6c 61 63 65 |d may be| replace|
|000027f0| 64 20 62 65 63 61 75 73 | 65 20 6f 66 20 74 65 63 |d becaus|e of tec|
|00002800| 68 6e 69 63 61 6c 20 70 | 72 6f 62 6c 65 6d 73 2c |hnical p|roblems,|
|00002810| 20 73 6f 20 74 68 65 20 | 0a 41 52 50 20 65 6e 74 | so the |.ARP ent|
|00002820| 72 79 20 62 65 63 6f 6d | 65 73 20 69 6e 76 61 6c |ry becom|es inval|
|00002830| 69 64 2e 20 54 6f 20 66 | 6f 72 63 65 20 61 6e 6f |id. To f|orce ano|
|00002840| 74 68 65 72 20 71 75 65 | 72 79 20 66 6f 72 20 74 |ther que|ry for t|
|00002850| 68 65 20 49 50 7e 61 64 | 64 72 65 73 73 2c 0a 65 |he IP~ad|dress,.e|
|00002860| 6e 74 72 69 65 73 20 69 | 6e 20 74 68 65 20 41 52 |ntries i|n the AR|
|00002870| 50 20 63 61 63 68 65 20 | 61 72 65 20 74 68 65 72 |P cache |are ther|
|00002880| 65 66 6f 72 65 20 64 69 | 73 63 61 72 64 65 64 20 |efore di|scarded |
|00002890| 61 66 74 65 72 20 73 6f | 6d 65 20 74 69 6d 65 2e |after so|me time.|
|000028a0| 0a 0a 0a 5c 69 6e 64 65 | 78 7b 64 69 73 6b 6c 65 |...\inde|x{diskle|
|000028b0| 73 73 20 63 6c 69 65 6e | 74 73 7d 0a 5c 69 6e 64 |ss clien|ts}.\ind|
|000028c0| 65 78 7b 42 4f 4f 54 50 | 7d 0a 5c 69 6e 64 65 78 |ex{BOOTP|}.\index|
|000028d0| 7b 52 41 52 50 7d 0a 53 | 6f 6d 65 74 69 6d 65 73 |{RARP}.S|ometimes|
|000028e0| 2c 20 69 74 20 69 73 20 | 61 6c 73 6f 20 6e 65 63 |, it is |also nec|
|000028f0| 65 73 73 61 72 79 20 74 | 6f 20 66 69 6e 64 20 6f |essary t|o find o|
|00002900| 75 74 20 74 68 65 20 49 | 50 7e 61 64 64 72 65 73 |ut the I|P~addres|
|00002910| 73 20 61 73 73 6f 63 69 | 61 74 65 64 0a 77 69 74 |s associ|ated.wit|
|00002920| 68 20 61 20 67 69 76 65 | 6e 20 45 74 68 65 72 6e |h a give|n Ethern|
|00002930| 65 74 20 61 64 64 72 65 | 73 73 2e 20 54 68 69 73 |et addre|ss. This|
|00002940| 20 68 61 70 70 65 6e 73 | 20 77 68 65 6e 20 61 20 | happens| when a |
|00002950| 64 69 73 6b 6c 65 73 73 | 20 6d 61 63 68 69 6e 65 |diskless| machine|
|00002960| 0a 77 61 6e 74 73 20 74 | 6f 20 62 6f 6f 74 20 66 |.wants t|o boot f|
|00002970| 72 6f 6d 20 61 20 73 65 | 72 76 65 72 20 6f 6e 20 |rom a se|rver on |
|00002980| 74 68 65 20 6e 65 74 77 | 6f 72 6b 2c 20 77 68 69 |the netw|ork, whi|
|00002990| 63 68 20 69 73 20 71 75 | 69 74 65 20 61 20 63 6f |ch is qu|ite a co|
|000029a0| 6d 6d 6f 6e 0a 73 69 74 | 75 61 74 69 6f 6e 20 6f |mmon.sit|uation o|
|000029b0| 6e 20 6c 6f 63 61 6c 20 | 61 72 65 61 20 6e 65 74 |n local |area net|
|000029c0| 77 6f 72 6b 73 2e 20 41 | 20 64 69 73 6b 6c 65 73 |works. A| diskles|
|000029d0| 73 20 63 6c 69 65 6e 74 | 2c 20 68 6f 77 65 76 65 |s client|, howeve|
|000029e0| 72 2c 20 68 61 73 0a 76 | 69 72 74 75 61 6c 6c 79 |r, has.v|irtually|
|000029f0| 20 6e 6f 20 69 6e 66 6f | 72 6d 61 74 69 6f 6e 20 | no info|rmation |
|00002a00| 61 62 6f 75 74 20 69 74 | 73 65 6c 66 7e 2d 2d 20 |about it|self~-- |
|00002a10| 65 78 63 65 70 74 20 66 | 6f 72 20 69 74 73 20 45 |except f|or its E|
|00002a20| 74 68 65 72 6e 65 74 0a | 61 64 64 72 65 73 73 21 |thernet.|address!|
|00002a30| 20 53 6f 20 77 68 61 74 | 20 69 74 20 62 61 73 69 | So what| it basi|
|00002a40| 63 61 6c 6c 79 20 64 6f | 65 73 20 69 73 20 62 72 |cally do|es is br|
|00002a50| 6f 61 64 63 61 73 74 20 | 61 20 6d 65 73 73 61 67 |oadcast |a messag|
|00002a60| 65 20 63 6f 6e 74 61 69 | 6e 69 6e 67 20 61 0a 70 |e contai|ning a.p|
|00002a70| 6c 65 61 20 66 6f 72 20 | 62 6f 6f 74 20 73 65 72 |lea for |boot ser|
|00002a80| 76 65 72 73 20 74 6f 20 | 74 65 6c 6c 20 69 74 20 |vers to |tell it |
|00002a90| 69 74 73 20 49 50 7e 61 | 64 64 72 65 73 73 2e 20 |its IP~a|ddress. |
|00002aa0| 54 68 65 72 65 27 73 20 | 61 6e 6f 74 68 65 72 0a |There's |another.|
|00002ab0| 70 72 6f 74 6f 63 6f 6c | 20 66 6f 72 20 74 68 69 |protocol| for thi|
|00002ac0| 73 2c 20 6e 61 6d 65 64 | 20 5c 65 6d 70 68 7b 52 |s, named| \emph{R|
|00002ad0| 65 76 65 72 73 65 20 41 | 64 64 72 65 73 73 20 52 |everse A|ddress R|
|00002ae0| 65 73 6f 6c 75 74 69 6f | 6e 20 50 72 6f 74 6f 63 |esolutio|n Protoc|
|00002af0| 6f 6c 7d 2c 20 6f 72 0a | 52 41 52 50 2e 20 41 6c |ol}, or.|RARP. Al|
|00002b00| 6f 6e 67 20 77 69 74 68 | 20 74 68 65 20 42 4f 4f |ong with| the BOO|
|00002b10| 54 50 20 70 72 6f 74 6f | 63 6f 6c 2c 20 69 74 20 |TP proto|col, it |
|00002b20| 73 65 72 76 65 73 20 74 | 6f 20 64 65 66 69 6e 65 |serves t|o define|
|00002b30| 20 61 20 70 72 6f 63 65 | 64 75 72 65 0a 66 6f 72 | a proce|dure.for|
|00002b40| 20 62 6f 6f 74 73 74 72 | 61 70 70 69 6e 67 20 64 | bootstr|apping d|
|00002b50| 69 73 6b 6c 65 73 73 20 | 63 6c 69 65 6e 74 73 20 |iskless |clients |
|00002b60| 6f 76 65 72 20 74 68 65 | 20 6e 65 74 77 6f 72 6b |over the| network|
|00002b70| 2e 0a 0a 0a 5c 69 6e 64 | 65 78 7b 41 52 50 7c 29 |....\ind|ex{ARP|)|
|00002b80| 7d 0a 0a 5c 73 65 63 74 | 69 6f 6e 7b 49 50 20 52 |}..\sect|ion{IP R|
|00002b90| 6f 75 74 69 6e 67 7d 0a | 25 25 25 25 25 25 25 25 |outing}.|%%%%%%%%|
|00002ba0| 25 25 25 25 25 25 25 25 | 25 25 25 25 25 25 25 25 |%%%%%%%%|%%%%%%%%|
|00002bb0| 25 25 25 25 25 25 25 25 | 25 25 25 25 25 25 25 25 |%%%%%%%%|%%%%%%%%|
|00002bc0| 25 25 25 25 25 25 25 25 | 25 25 25 25 25 25 25 25 |%%%%%%%%|%%%%%%%%|
|00002bd0| 25 25 25 25 25 25 25 25 | 25 0a 5c 6c 61 62 65 6c |%%%%%%%%|%.\label|
|00002be0| 7b 74 63 70 69 70 2e 72 | 6f 75 74 69 6e 67 7d 0a |{tcpip.r|outing}.|
|00002bf0| 5c 69 6e 64 65 78 7b 49 | 50 21 72 6f 75 74 69 6e |\index{I|P!routin|
|00002c00| 67 7c 28 7d 0a 0a 5c 73 | 75 62 73 65 63 74 69 6f |g|(}..\s|ubsectio|
|00002c10| 6e 7b 49 50 20 4e 65 74 | 77 6f 72 6b 73 7d 0a 25 |n{IP Net|works}.%|
|00002c20| 25 25 25 25 25 25 25 25 | 25 25 25 25 25 25 25 25 |%%%%%%%%|%%%%%%%%|
|00002c30| 25 25 25 25 25 25 25 25 | 25 25 25 25 25 25 25 25 |%%%%%%%%|%%%%%%%%|
|00002c40| 25 25 25 25 25 25 25 25 | 25 25 25 25 25 25 25 25 |%%%%%%%%|%%%%%%%%|
|00002c50| 25 25 25 25 25 25 25 25 | 25 25 25 25 25 25 25 25 |%%%%%%%%|%%%%%%%%|
|00002c60| 0a 5c 6c 61 62 65 6c 7b | 74 63 70 69 70 2e 72 6f |.\label{|tcpip.ro|
|00002c70| 75 74 69 6e 67 2e 6e 65 | 74 77 6f 72 6b 73 7d 0a |uting.ne|tworks}.|
|00002c80| 5c 69 6e 64 65 78 7b 49 | 50 21 6e 65 74 77 6f 72 |\index{I|P!networ|
|00002c90| 6b 73 7d 0a 0a 5c 62 6c | 61 63 6b 64 69 61 6d 6f |ks}..\bl|ackdiamo|
|00002ca0| 6e 64 0a 57 68 65 6e 20 | 79 6f 75 20 77 72 69 74 |nd.When |you writ|
|00002cb0| 65 20 61 20 6c 65 74 74 | 65 72 20 74 6f 20 73 6f |e a lett|er to so|
|00002cc0| 6d 65 6f 6e 65 2c 20 79 | 6f 75 20 75 73 75 61 6c |meone, y|ou usual|
|00002cd0| 6c 79 20 70 75 74 20 61 | 20 63 6f 6d 70 6c 65 74 |ly put a| complet|
|00002ce0| 65 20 61 64 64 72 65 73 | 73 0a 6f 6e 20 74 68 65 |e addres|s.on the|
|00002cf0| 20 65 6e 76 65 6c 6f 70 | 65 2c 20 73 70 65 63 69 | envelop|e, speci|
|00002d00| 66 79 69 6e 67 20 74 68 | 65 20 63 6f 75 6e 74 72 |fying th|e countr|
|00002d10| 79 2c 20 73 74 61 74 65 | 2c 20 7a 69 70 20 63 6f |y, state|, zip co|
|00002d20| 64 65 2c 20 65 74 63 2e | 20 41 66 74 65 72 0a 79 |de, etc.| After.y|
|00002d30| 6f 75 20 70 75 74 20 69 | 74 20 69 6e 74 6f 20 74 |ou put i|t into t|
|00002d40| 68 65 20 6c 65 74 74 65 | 72 20 62 6f 78 2c 20 74 |he lette|r box, t|
|00002d50| 68 65 20 70 6f 73 74 61 | 6c 20 73 65 72 76 69 63 |he posta|l servic|
|00002d60| 65 20 77 69 6c 6c 20 64 | 65 6c 69 76 65 72 20 69 |e will d|eliver i|
|00002d70| 74 20 74 6f 0a 69 74 73 | 20 64 65 73 74 69 6e 61 |t to.its| destina|
|00002d80| 74 69 6f 6e 3a 20 69 74 | 20 77 69 6c 6c 20 62 65 |tion: it| will be|
|00002d90| 20 73 65 6e 74 20 74 6f | 20 74 68 65 20 63 6f 75 | sent to| the cou|
|00002da0| 6e 74 72 79 20 69 6e 64 | 69 63 61 74 65 64 2c 20 |ntry ind|icated, |
|00002db0| 77 68 6f 73 65 20 6e 61 | 74 69 6f 6e 61 6c 0a 73 |whose na|tional.s|
|00002dc0| 65 72 76 69 63 65 20 77 | 69 6c 6c 20 64 69 73 70 |ervice w|ill disp|
|00002dd0| 61 74 63 68 20 69 74 20 | 74 6f 20 74 68 65 20 70 |atch it |to the p|
|00002de0| 72 6f 70 65 72 20 73 74 | 61 74 65 20 61 6e 64 20 |roper st|ate and |
|00002df0| 72 65 67 69 6f 6e 2c 20 | 65 74 63 2e 20 20 54 68 |region, |etc. Th|
|00002e00| 65 0a 61 64 76 61 6e 74 | 61 67 65 20 6f 66 20 74 |e.advant|age of t|
|00002e10| 68 69 73 20 68 69 65 72 | 61 72 63 68 69 63 61 6c |his hier|archical|
|00002e20| 20 73 63 68 65 6d 65 20 | 69 73 20 72 61 74 68 65 | scheme |is rathe|
|00002e30| 72 20 6f 62 76 69 6f 75 | 73 3a 20 57 68 65 72 65 |r obviou|s: Where|
|00002e40| 76 65 72 20 79 6f 75 0a | 70 6f 73 74 20 74 68 65 |ver you.|post the|
|00002e50| 20 6c 65 74 74 65 72 2c | 20 74 68 65 20 6c 6f 63 | letter,| the loc|
|00002e60| 61 6c 20 70 6f 73 74 6d | 61 73 74 65 72 20 77 69 |al postm|aster wi|
|00002e70| 6c 6c 20 6b 6e 6f 77 20 | 72 6f 75 67 68 6c 79 20 |ll know |roughly |
|00002e80| 74 68 65 20 64 69 72 65 | 63 74 69 6f 6e 20 74 6f |the dire|ction to|
|00002e90| 0a 66 6f 72 77 61 72 64 | 20 74 68 65 20 6c 65 74 |.forward| the let|
|00002ea0| 74 65 72 20 74 6f 2c 20 | 62 75 74 20 64 6f 65 73 |ter to, |but does|
|00002eb0| 6e 27 74 20 68 61 76 65 | 20 74 6f 20 63 61 72 65 |n't have| to care|
|00002ec0| 20 77 68 69 63 68 20 77 | 61 79 20 74 68 65 20 6c | which w|ay the l|
|00002ed0| 65 74 74 65 72 0a 77 69 | 6c 6c 20 74 72 61 76 65 |etter.wi|ll trave|
|00002ee0| 6c 20 62 79 20 77 69 74 | 68 69 6e 20 74 68 65 20 |l by wit|hin the |
|00002ef0| 64 65 73 74 69 6e 61 74 | 69 6f 6e 20 63 6f 75 6e |destinat|ion coun|
|00002f00| 74 72 79 2e 0a 0a 0a 49 | 50 7e 6e 65 74 77 6f 72 |try....I|P~networ|
|00002f10| 6b 73 20 61 72 65 20 73 | 74 72 75 63 74 75 72 65 |ks are s|tructure|
|00002f20| 64 20 69 6e 20 61 20 73 | 69 6d 69 6c 61 72 20 77 |d in a s|imilar w|
|00002f30| 61 79 2e 20 54 68 65 20 | 77 68 6f 6c 65 20 49 6e |ay. The |whole In|
|00002f40| 74 65 72 6e 65 74 0a 63 | 6f 6e 73 69 73 74 73 20 |ternet.c|onsists |
|00002f50| 6f 66 20 61 20 6e 75 6d | 62 65 72 20 6f 66 20 70 |of a num|ber of p|
|00002f60| 72 6f 70 65 72 20 6e 65 | 74 77 6f 72 6b 73 2c 20 |roper ne|tworks, |
|00002f70| 63 61 6c 6c 65 64 20 5c | 65 6d 70 68 7b 61 75 74 |called \|emph{aut|
|00002f80| 6f 6e 6f 6d 6f 75 73 20 | 73 79 73 74 65 6d 73 7d |onomous |systems}|
|00002f90| 2e 0a 45 61 63 68 20 73 | 75 63 68 20 73 79 73 74 |..Each s|uch syst|
|00002fa0| 65 6d 20 70 65 72 66 6f | 72 6d 73 20 61 6e 79 20 |em perfo|rms any |
|00002fb0| 72 6f 75 74 69 6e 67 20 | 62 65 74 77 65 65 6e 20 |routing |between |
|00002fc0| 69 74 73 20 6d 65 6d 62 | 65 72 20 68 6f 73 74 73 |its memb|er hosts|
|00002fd0| 0a 69 6e 74 65 72 6e 61 | 6c 6c 79 2c 20 73 6f 20 |.interna|lly, so |
|00002fe0| 74 68 61 74 20 74 68 65 | 20 74 61 73 6b 20 6f 66 |that the| task of|
|00002ff0| 20 64 65 6c 69 76 65 72 | 69 6e 67 20 61 20 64 61 | deliver|ing a da|
|00003000| 74 61 67 72 61 6d 20 69 | 73 20 72 65 64 75 63 65 |tagram i|s reduce|
|00003010| 64 20 74 6f 20 66 69 6e | 64 69 6e 67 0a 61 20 70 |d to fin|ding.a p|
|00003020| 61 74 68 20 74 6f 20 74 | 68 65 20 64 65 73 74 69 |ath to t|he desti|
|00003030| 6e 61 74 69 6f 6e 20 68 | 6f 73 74 27 73 20 6e 65 |nation h|ost's ne|
|00003040| 74 77 6f 72 6b 2e 20 54 | 68 69 73 20 6d 65 61 6e |twork. T|his mean|
|00003050| 73 2c 20 61 73 20 73 6f | 6f 6e 20 61 73 20 74 68 |s, as so|on as th|
|00003060| 65 20 64 61 74 61 67 72 | 61 6d 20 0a 69 73 20 68 |e datagr|am .is h|
|00003070| 61 6e 64 65 64 20 74 6f | 20 5c 65 6d 70 68 7b 61 |anded to| \emph{a|
|00003080| 6e 79 7d 20 68 6f 73 74 | 20 74 68 61 74 20 69 73 |ny} host| that is|
|00003090| 20 6f 6e 20 74 68 61 74 | 20 70 61 72 74 69 63 75 | on that| particu|
|000030a0| 6c 61 72 20 6e 65 74 77 | 6f 72 6b 2c 20 66 75 72 |lar netw|ork, fur|
|000030b0| 74 68 65 72 20 0a 70 72 | 6f 63 65 73 73 69 6e 67 |ther .pr|ocessing|
|000030c0| 20 69 73 20 64 6f 6e 65 | 20 65 78 63 6c 75 73 69 | is done| exclusi|
|000030d0| 76 65 6c 79 20 62 79 20 | 74 68 65 20 6e 65 74 77 |vely by |the netw|
|000030e0| 6f 72 6b 20 69 74 73 65 | 6c 66 2e 0a 0a 0a 5c 73 |ork itse|lf....\s|
|000030f0| 75 62 73 65 63 74 69 6f | 6e 7b 53 75 62 6e 65 74 |ubsectio|n{Subnet|
|00003100| 77 6f 72 6b 73 7d 0a 25 | 25 25 25 25 25 25 25 25 |works}.%|%%%%%%%%|
|00003110| 25 25 25 25 25 25 25 25 | 25 25 25 25 25 25 25 25 |%%%%%%%%|%%%%%%%%|
|00003120| 25 25 25 25 25 25 25 25 | 25 25 25 25 25 25 25 25 |%%%%%%%%|%%%%%%%%|
|00003130| 25 25 25 25 25 25 25 25 | 25 25 25 25 25 25 25 25 |%%%%%%%%|%%%%%%%%|
|00003140| 25 25 25 25 25 25 25 25 | 0a 5c 6c 61 62 65 6c 7b |%%%%%%%%|.\label{|
|00003150| 74 63 70 69 70 2e 72 6f | 75 74 69 6e 67 2e 73 75 |tcpip.ro|uting.su|
|00003160| 62 6e 65 74 73 7d 0a 5c | 69 6e 64 65 78 7b 49 50 |bnets}.\|index{IP|
|00003170| 21 73 75 62 2d 6e 65 74 | 77 6f 72 6b 73 7c 73 65 |!sub-net|works|se|
|00003180| 65 20 7b 49 50 2c 20 73 | 75 62 6e 65 74 7d 7d 0a |e {IP, s|ubnet}}.|
|00003190| 5c 69 6e 64 65 78 7b 49 | 50 21 73 75 62 6e 65 74 |\index{I|P!subnet|
|000031a0| 7c 28 7d 0a 0a 54 68 69 | 73 20 73 74 72 75 63 74 ||(}..Thi|s struct|
|000031b0| 75 72 65 20 69 73 20 72 | 65 66 6c 65 63 74 65 64 |ure is r|eflected|
|000031c0| 20 62 79 20 73 70 6c 69 | 74 74 69 6e 67 20 49 50 | by spli|tting IP|
|000031d0| 7e 61 64 64 72 65 73 73 | 65 73 20 69 6e 74 6f 20 |~address|es into |
|000031e0| 61 20 68 6f 73 74 20 61 | 6e 64 0a 6e 65 74 77 6f |a host a|nd.netwo|
|000031f0| 72 6b 20 70 61 72 74 2c | 20 61 73 20 65 78 70 6c |rk part,| as expl|
|00003200| 61 69 6e 65 64 20 61 62 | 6f 76 65 2e 20 42 79 20 |ained ab|ove. By |
|00003210| 64 65 66 61 75 6c 74 2c | 20 74 68 65 20 64 65 73 |default,| the des|
|00003220| 74 69 6e 61 74 69 6f 6e | 20 6e 65 74 77 6f 72 6b |tination| network|
|00003230| 20 69 73 0a 64 65 72 69 | 76 65 64 20 66 72 6f 6d | is.deri|ved from|
|00003240| 20 74 68 65 20 6e 65 74 | 77 6f 72 6b 20 70 61 72 | the net|work par|
|00003250| 74 20 6f 66 20 74 68 65 | 20 49 50 7e 61 64 64 72 |t of the| IP~addr|
|00003260| 65 73 73 2e 20 54 68 75 | 73 2c 20 68 6f 73 74 73 |ess. Thu|s, hosts|
|00003270| 20 77 69 74 68 0a 69 64 | 65 6e 74 69 63 61 6c 20 | with.id|entical |
|00003280| 49 50 7e 6e 65 74 77 6f | 72 6b 20 6e 75 6d 62 65 |IP~netwo|rk numbe|
|00003290| 72 73 20 73 68 6f 75 6c | 64 20 62 65 20 66 6f 75 |rs shoul|d be fou|
|000032a0| 6e 64 20 77 69 74 68 69 | 6e 20 74 68 65 20 73 61 |nd withi|n the sa|
|000032b0| 6d 65 20 6e 65 74 77 6f | 72 6b 2c 0a 61 6e 64 20 |me netwo|rk,.and |
|000032c0| 76 69 63 65 20 76 65 72 | 73 61 2e 5c 66 6f 6f 74 |vice ver|sa.\foot|
|000032d0| 6e 6f 74 65 7b 0a 20 41 | 75 74 6f 6e 6f 6d 6f 75 |note{. A|utonomou|
|000032e0| 73 20 73 79 73 74 65 6d | 73 20 61 72 65 20 73 6c |s system|s are sl|
|000032f0| 69 67 68 74 6c 79 20 6d | 6f 72 65 20 67 65 6e 65 |ightly m|ore gene|
|00003300| 72 61 6c 2c 20 68 6f 77 | 65 76 65 72 2e 20 54 68 |ral, how|ever. Th|
|00003310| 65 79 20 6d 61 79 20 63 | 6f 6d 70 72 69 73 65 0a |ey may c|omprise.|
|00003320| 20 6d 6f 72 65 20 74 68 | 61 6e 20 6f 6e 65 20 49 | more th|an one I|
|00003330| 50 7e 6e 65 74 77 6f 72 | 6b 2e 0a 7d 0a 0a 0a 49 |P~networ|k..}...I|
|00003340| 74 20 6d 61 6b 65 73 20 | 73 65 6e 73 65 20 74 6f |t makes |sense to|
|00003350| 20 6f 66 66 65 72 20 61 | 20 73 69 6d 69 6c 61 72 | offer a| similar|
|00003360| 20 73 63 68 65 6d 65 20 | 5c 65 6d 70 68 7b 69 6e | scheme |\emph{in|
|00003370| 73 69 64 65 7d 20 74 68 | 65 20 6e 65 74 77 6f 72 |side} th|e networ|
|00003380| 6b 2c 0a 74 6f 6f 2c 20 | 73 69 6e 63 65 20 69 74 |k,.too, |since it|
|00003390| 20 6d 61 79 20 63 6f 6e | 73 69 73 74 20 6f 66 20 | may con|sist of |
|000033a0| 61 20 63 6f 6c 6c 65 63 | 74 69 6f 6e 20 6f 66 20 |a collec|tion of |
|000033b0| 68 75 6e 64 72 65 64 73 | 20 6f 66 20 73 6d 61 6c |hundreds| of smal|
|000033c0| 6c 65 72 0a 6e 65 74 77 | 6f 72 6b 73 20 69 74 73 |ler.netw|orks its|
|000033d0| 65 6c 66 2c 20 77 69 74 | 68 20 74 68 65 20 73 6d |elf, wit|h the sm|
|000033e0| 61 6c 6c 65 73 74 20 75 | 6e 69 74 73 20 62 65 69 |allest u|nits bei|
|000033f0| 6e 67 20 70 68 79 73 69 | 63 61 6c 20 6e 65 74 77 |ng physi|cal netw|
|00003400| 6f 72 6b 73 20 6c 69 6b | 65 0a 45 74 68 65 72 6e |orks lik|e.Ethern|
|00003410| 65 74 73 2e 20 54 68 65 | 72 65 66 6f 72 65 2c 20 |ets. The|refore, |
|00003420| 49 50 20 61 6c 6c 6f 77 | 73 20 79 6f 75 20 74 6f |IP allow|s you to|
|00003430| 20 73 75 62 64 69 76 69 | 64 65 20 61 6e 20 49 50 | subdivi|de an IP|
|00003440| 7e 6e 65 74 77 6f 72 6b | 20 69 6e 74 6f 0a 73 65 |~network| into.se|
|00003450| 76 65 72 61 6c 20 5c 65 | 6d 70 68 7b 73 75 62 6e |veral \e|mph{subn|
|00003460| 65 74 73 7d 2e 0a 0a 0a | 5c 69 6e 64 65 78 7b 69 |ets}....|\index{i|
|00003470| 6e 74 65 72 66 61 63 65 | 21 6e 65 74 6d 61 73 6b |nterface|!netmask|
|00003480| 7d 0a 5c 69 6e 64 65 78 | 7b 49 50 21 6e 65 74 6d |}.\index|{IP!netm|
|00003490| 61 73 6b 7d 0a 41 20 73 | 75 62 6e 65 74 20 74 61 |ask}.A s|ubnet ta|
|000034a0| 6b 65 73 20 6f 76 65 72 | 20 72 65 73 70 6f 6e 73 |kes over| respons|
|000034b0| 69 62 69 6c 69 74 79 20 | 66 6f 72 20 64 65 6c 69 |ibility |for deli|
|000034c0| 76 65 72 69 6e 67 20 64 | 61 74 61 67 72 61 6d 73 |vering d|atagrams|
|000034d0| 20 74 6f 20 61 20 63 65 | 72 74 61 69 6e 0a 72 61 | to a ce|rtain.ra|
|000034e0| 6e 67 65 20 6f 66 20 49 | 50 7e 61 64 64 72 65 73 |nge of I|P~addres|
|000034f0| 73 65 73 20 66 72 6f 6d | 20 74 68 65 20 49 50 7e |ses from| the IP~|
|00003500| 6e 65 74 77 6f 72 6b 20 | 69 74 20 69 73 20 70 61 |network |it is pa|
|00003510| 72 74 20 6f 66 2e 20 20 | 41 73 20 77 69 74 68 0a |rt of. |As with.|
|00003520| 63 6c 61 73 73 65 73 20 | 41 2c 20 42 2c 20 6f 72 |classes |A, B, or|
|00003530| 20 43 2c 20 69 74 20 69 | 73 20 69 64 65 6e 74 69 | C, it i|s identi|
|00003540| 66 69 65 64 20 62 79 20 | 74 68 65 20 6e 65 74 77 |fied by |the netw|
|00003550| 6f 72 6b 20 70 61 72 74 | 20 6f 66 20 74 68 65 0a |ork part| of the.|
|00003560| 49 50 7e 61 64 64 72 65 | 73 73 65 73 2e 20 48 6f |IP~addre|sses. Ho|
|00003570| 77 65 76 65 72 2c 20 74 | 68 65 20 6e 65 74 77 6f |wever, t|he netwo|
|00003580| 72 6b 20 70 61 72 74 20 | 69 73 20 6e 6f 77 20 65 |rk part |is now e|
|00003590| 78 74 65 6e 64 65 64 20 | 74 6f 20 69 6e 63 6c 75 |xtended |to inclu|
|000035a0| 64 65 0a 73 6f 6d 65 20 | 62 69 74 73 20 66 72 6f |de.some |bits fro|
|000035b0| 6d 20 74 68 65 20 68 6f | 73 74 20 70 61 72 74 2e |m the ho|st part.|
|000035c0| 20 20 54 68 65 20 6e 75 | 6d 62 65 72 20 6f 66 20 | The nu|mber of |
|000035d0| 62 69 74 73 20 74 68 61 | 74 20 61 72 65 20 69 6e |bits tha|t are in|
|000035e0| 74 65 72 70 72 65 74 65 | 64 0a 61 73 20 74 68 65 |terprete|d.as the|
|000035f0| 20 73 75 62 6e 65 74 20 | 6e 75 6d 62 65 72 20 69 | subnet |number i|
|00003600| 73 20 67 69 76 65 6e 20 | 62 79 20 74 68 65 20 73 |s given |by the s|
|00003610| 6f 2d 63 61 6c 6c 65 64 | 20 5c 65 6d 70 68 7b 73 |o-called| \emph{s|
|00003620| 75 62 6e 65 74 20 6d 61 | 73 6b 7d 2c 20 6f 72 0a |ubnet ma|sk}, or.|
|00003630| 5c 65 6d 70 68 7b 6e 65 | 74 6d 61 73 6b 7d 2e 20 |\emph{ne|tmask}. |
|00003640| 20 54 68 69 73 20 69 73 | 20 61 20 33 32 7e 62 69 | This is| a 32~bi|
|00003650| 74 20 6e 75 6d 62 65 72 | 2c 20 74 6f 6f 2c 20 77 |t number|, too, w|
|00003660| 68 69 63 68 20 73 70 65 | 63 69 66 69 65 73 20 74 |hich spe|cifies t|
|00003670| 68 65 20 62 69 74 0a 6d | 61 73 6b 20 66 6f 72 20 |he bit.m|ask for |
|00003680| 74 68 65 20 6e 65 74 77 | 6f 72 6b 20 70 61 72 74 |the netw|ork part|
|00003690| 20 6f 66 20 74 68 65 20 | 49 50 7e 61 64 64 72 65 | of the |IP~addre|
|000036a0| 73 73 2e 0a 0a 0a 5c 62 | 65 67 69 6e 7b 66 69 67 |ss....\b|egin{fig|
|000036b0| 75 72 65 7d 5b 68 74 62 | 70 5d 0a 5c 69 66 74 65 |ure}[htb|p].\ifte|
|000036c0| 78 0a 20 5c 69 66 70 73 | 0a 20 20 5c 62 65 67 69 |x. \ifps|. \begi|
|000036d0| 6e 7b 63 65 6e 74 65 72 | 7d 0a 20 20 20 5c 6d 62 |n{center|}. \mb|
|000036e0| 6f 78 7b 5c 65 70 73 66 | 66 69 6c 65 7b 66 69 67 |ox{\epsf|file{fig|
|000036f0| 75 72 65 73 2f 73 75 62 | 6e 65 74 2e 65 70 73 66 |ures/sub|net.epsf|
|00003700| 7d 7d 0a 20 20 5c 65 6e | 64 7b 63 65 6e 74 65 72 |}}. \en|d{center|
|00003710| 7d 0a 20 5c 65 6c 73 65 | 0a 20 20 5c 62 65 67 69 |}. \else|. \begi|
|00003720| 6e 7b 63 65 6e 74 65 72 | 7d 0a 20 20 20 5c 69 6e |n{center|}. \in|
|00003730| 70 75 74 7b 73 75 62 6e | 65 74 2e 65 65 70 69 63 |put{subn|et.eepic|
|00003740| 7d 0a 20 20 5c 65 6e 64 | 7b 63 65 6e 74 65 72 7d |}. \end|{center}|
|00003750| 0a 20 5c 66 69 0a 5c 65 | 6c 73 65 0a 5c 66 69 0a |. \fi.\e|lse.\fi.|
|00003760| 20 5c 63 61 70 74 69 6f | 6e 7b 0a 20 20 5c 6c 61 | \captio|n{. \la|
|00003770| 62 65 6c 7b 74 63 70 69 | 70 2e 66 69 67 2e 73 75 |bel{tcpi|p.fig.su|
|00003780| 62 6e 65 74 7d 0a 20 20 | 53 75 62 6e 65 74 74 69 |bnet}. |Subnetti|
|00003790| 6e 67 20 61 20 63 6c 61 | 73 73 20 42 20 6e 65 74 |ng a cla|ss B net|
|000037a0| 77 6f 72 6b 0a 20 7d 0a | 5c 65 6e 64 7b 66 69 67 |work. }.|\end{fig|
|000037b0| 75 72 65 7d 0a 0a 0a 5c | 69 6e 64 65 78 7b 47 72 |ure}...\|index{Gr|
|000037c0| 6f 75 63 68 6f 20 4d 61 | 72 78 20 55 6e 69 76 65 |oucho Ma|rx Unive|
|000037d0| 72 73 69 74 79 7d 0a 54 | 68 65 20 63 61 6d 70 75 |rsity}.T|he campu|
|000037e0| 73 20 6e 65 74 77 6f 72 | 6b 20 6f 66 20 47 72 6f |s networ|k of Gro|
|000037f0| 75 63 68 6f 20 4d 61 72 | 78 20 55 6e 69 76 65 72 |ucho Mar|x Univer|
|00003800| 73 69 74 79 20 69 73 20 | 61 6e 20 65 78 61 6d 70 |sity is |an examp|
|00003810| 6c 65 20 6f 66 20 73 75 | 63 68 20 61 0a 6e 65 74 |le of su|ch a.net|
|00003820| 77 6f 72 6b 2e 20 49 74 | 20 68 61 73 20 61 20 63 |work. It| has a c|
|00003830| 6c 61 73 73 7e 42 20 6e | 65 74 77 6f 72 6b 20 6e |lass~B n|etwork n|
|00003840| 75 6d 62 65 72 20 6f 66 | 20 5c 68 6f 73 74 7b 31 |umber of| \host{1|
|00003850| 34 39 2e 37 36 2e 30 2e | 30 7d 2c 20 61 6e 64 20 |49.76.0.|0}, and |
|00003860| 69 74 73 0a 6e 65 74 6d | 61 73 6b 20 69 73 20 74 |its.netm|ask is t|
|00003870| 68 65 72 65 66 6f 72 65 | 20 5c 68 6f 73 74 7b 32 |herefore| \host{2|
|00003880| 35 35 2e 32 35 35 2e 30 | 2e 30 7d 2e 0a 25 20 49 |55.255.0|.0}..% I|
|00003890| 74 20 69 73 20 63 6f 6e | 6e 65 63 74 65 64 20 74 |t is con|nected t|
|000038a0| 6f 20 74 68 65 20 49 6e | 74 65 72 6e 65 74 0a 25 |o the In|ternet.%|
|000038b0| 20 74 68 72 6f 75 67 68 | 20 61 20 73 69 6e 67 6c | through| a singl|
|000038c0| 65 20 68 6f 73 74 20 61 | 74 20 74 68 65 20 47 43 |e host a|t the GC|
|000038d0| 43 20 47 72 6f 75 63 68 | 6f 20 43 6f 6d 70 75 74 |C Grouch|o Comput|
|000038e0| 69 6e 67 20 43 65 6e 74 | 72 65 2c 20 73 6f 20 61 |ing Cent|re, so a|
|000038f0| 6c 6c 0a 25 20 64 61 74 | 61 67 72 61 6d 20 66 72 |ll.% dat|agram fr|
|00003900| 6f 6d 20 74 68 65 20 6f | 75 74 73 69 64 65 20 70 |om the o|utside p|
|00003910| 61 73 73 20 74 68 69 73 | 20 67 61 74 65 77 61 79 |ass this| gateway|
|00003920| 20 6d 61 63 68 69 6e 65 | 2e 0a 0a 0a 49 6e 74 65 | machine|....Inte|
|00003930| 72 6e 61 6c 6c 79 2c 20 | 47 4d 55 27 73 20 63 61 |rnally, |GMU's ca|
|00003940| 6d 70 75 73 20 6e 65 74 | 77 6f 72 6b 20 63 6f 6e |mpus net|work con|
|00003950| 73 69 73 74 73 20 6f 66 | 20 73 65 76 65 72 61 6c |sists of| several|
|00003960| 20 73 6d 61 6c 6c 65 72 | 20 6e 65 74 77 6f 72 6b | smaller| network|
|00003970| 73 2c 0a 73 75 63 68 20 | 61 73 20 74 68 65 20 4c |s,.such |as the L|
|00003980| 41 4e 73 20 6f 66 20 76 | 61 72 69 6f 75 73 20 64 |ANs of v|arious d|
|00003990| 65 70 61 72 74 6d 65 6e | 74 73 2e 20 53 6f 20 74 |epartmen|ts. So t|
|000039a0| 68 65 20 72 61 6e 67 65 | 20 6f 66 20 49 50 7e 61 |he range| of IP~a|
|000039b0| 64 64 72 65 73 73 65 73 | 0a 69 73 20 62 72 6f 6b |ddresses|.is brok|
|000039c0| 65 6e 20 75 70 20 69 6e | 74 6f 20 32 35 34 20 73 |en up in|to 254 s|
|000039d0| 75 62 6e 65 74 73 2c 20 | 5c 68 6f 73 74 7b 31 34 |ubnets, |\host{14|
|000039e0| 39 2e 37 36 2e 31 2e 30 | 7d 20 74 68 72 6f 75 67 |9.76.1.0|} throug|
|000039f0| 68 0a 5c 68 6f 73 74 7b | 31 34 39 2e 37 36 2e 32 |h.\host{|149.76.2|
|00003a00| 35 34 2e 30 7d 2e 20 20 | 46 6f 72 20 65 78 61 6d |54.0}. |For exam|
|00003a10| 70 6c 65 2c 20 74 68 65 | 20 44 65 70 61 72 74 6d |ple, the| Departm|
|00003a20| 65 6e 74 20 6f 66 20 54 | 68 65 6f 72 65 74 69 63 |ent of T|heoretic|
|00003a30| 61 6c 0a 50 68 79 73 69 | 63 73 20 68 61 73 20 62 |al.Physi|cs has b|
|00003a40| 65 65 6e 20 61 73 73 69 | 67 6e 65 64 20 5c 68 6f |een assi|gned \ho|
|00003a50| 73 74 7b 31 34 39 2e 37 | 36 2e 31 32 2e 30 7d 2e |st{149.7|6.12.0}.|
|00003a60| 20 20 54 68 65 20 63 61 | 6d 70 75 73 20 62 61 63 | The ca|mpus bac|
|00003a70| 6b 62 6f 6e 65 20 69 73 | 0a 61 20 6e 65 74 77 6f |kbone is|.a netwo|
|00003a80| 72 6b 20 62 79 20 69 74 | 73 20 6f 77 6e 20 72 69 |rk by it|s own ri|
|00003a90| 67 68 74 2c 20 61 6e 64 | 20 69 73 20 67 69 76 65 |ght, and| is give|
|00003aa0| 6e 20 5c 68 6f 73 74 7b | 31 34 39 2e 37 36 2e 31 |n \host{|149.76.1|
|00003ab0| 2e 30 7d 2e 20 20 54 68 | 65 73 65 0a 73 75 62 6e |.0}. Th|ese.subn|
|00003ac0| 65 74 73 20 73 68 61 72 | 65 20 74 68 65 20 73 61 |ets shar|e the sa|
|00003ad0| 6d 65 20 49 50 7e 6e 65 | 74 77 6f 72 6b 20 6e 75 |me IP~ne|twork nu|
|00003ae0| 6d 62 65 72 2c 20 77 68 | 69 6c 65 20 74 68 65 20 |mber, wh|ile the |
|00003af0| 74 68 69 72 64 20 6f 63 | 74 65 74 20 69 73 0a 75 |third oc|tet is.u|
|00003b00| 73 65 64 20 74 6f 20 64 | 69 73 74 69 6e 67 75 69 |sed to d|istingui|
|00003b10| 73 68 20 62 65 74 77 65 | 65 6e 20 74 68 65 6d 2e |sh betwe|en them.|
|00003b20| 20 20 54 68 75 73 20 74 | 68 65 79 20 77 69 6c 6c | Thus t|hey will|
|00003b30| 20 75 73 65 20 61 20 73 | 75 62 6e 65 74 20 6d 61 | use a s|ubnet ma|
|00003b40| 73 6b 20 6f 66 0a 5c 68 | 6f 73 74 7b 32 35 35 2e |sk of.\h|ost{255.|
|00003b50| 32 35 35 2e 32 35 35 2e | 30 7d 2e 0a 0a 0a 46 69 |255.255.|0}....Fi|
|00003b60| 67 75 72 65 20 5c 72 65 | 66 7b 74 63 70 69 70 2e |gure \re|f{tcpip.|
|00003b70| 66 69 67 2e 73 75 62 6e | 65 74 7d 20 73 68 6f 77 |fig.subn|et} show|
|00003b80| 73 20 68 6f 77 20 5c 68 | 6f 73 74 7b 31 34 39 2e |s how \h|ost{149.|
|00003b90| 37 36 2e 31 32 2e 34 7d | 2c 20 74 68 65 0a 61 64 |76.12.4}|, the.ad|
|00003ba0| 64 72 65 73 73 20 6f 66 | 20 5c 68 6f 73 74 7b 71 |dress of| \host{q|
|00003bb0| 75 61 72 6b 7d 2c 20 69 | 73 20 69 6e 74 65 72 70 |uark}, i|s interp|
|00003bc0| 72 65 74 65 64 20 64 69 | 66 66 65 72 65 6e 74 6c |reted di|fferentl|
|00003bd0| 79 20 77 68 65 6e 20 74 | 68 65 20 61 64 64 72 65 |y when t|he addre|
|00003be0| 73 73 0a 69 73 20 74 61 | 6b 65 6e 20 61 73 20 61 |ss.is ta|ken as a|
|00003bf0| 6e 20 6f 72 64 69 6e 61 | 72 79 20 63 6c 61 73 73 |n ordina|ry class|
|00003c00| 7e 42 20 6e 65 74 77 6f | 72 6b 2c 20 61 6e 64 20 |~B netwo|rk, and |
|00003c10| 77 68 65 6e 20 75 73 65 | 64 20 77 69 74 68 0a 73 |when use|d with.s|
|00003c20| 75 62 6e 65 74 74 69 6e | 67 2e 0a 0a 0a 0a 5c 69 |ubnettin|g.....\i|
|00003c30| 6e 64 65 78 7b 64 65 6c | 65 67 61 74 69 6e 67 21 |ndex{del|egating!|
|00003c40| 49 50 20 73 75 62 6e 65 | 74 73 7d 0a 5c 69 6e 64 |IP subne|ts}.\ind|
|00003c50| 65 78 7b 73 75 62 6e 65 | 74 20 28 49 50 29 7d 0a |ex{subne|t (IP)}.|
|00003c60| 49 74 20 69 73 20 77 6f | 72 74 68 20 6e 6f 74 69 |It is wo|rth noti|
|00003c70| 6e 67 20 74 68 61 74 20 | 73 75 62 6e 65 74 74 69 |ng that |subnetti|
|00003c80| 6e 67 20 28 61 73 20 74 | 68 65 20 74 65 63 68 6e |ng (as t|he techn|
|00003c90| 69 71 75 65 20 6f 66 20 | 67 65 6e 65 72 61 74 69 |ique of |generati|
|00003ca0| 6e 67 0a 73 75 62 6e 65 | 74 73 20 69 73 20 63 61 |ng.subne|ts is ca|
|00003cb0| 6c 6c 65 64 29 20 69 73 | 20 6f 6e 6c 79 20 61 6e |lled) is| only an|
|00003cc0| 20 5c 65 6d 70 68 7b 69 | 6e 74 65 72 6e 61 6c 20 | \emph{i|nternal |
|00003cd0| 64 69 76 69 73 69 6f 6e | 7d 20 6f 66 20 74 68 65 |division|} of the|
|00003ce0| 20 6e 65 74 77 6f 72 6b | 2e 0a 53 75 62 6e 65 74 | network|..Subnet|
|00003cf0| 73 20 61 72 65 20 67 65 | 6e 65 72 61 74 65 64 20 |s are ge|nerated |
|00003d00| 62 79 20 74 68 65 20 6e | 65 74 77 6f 72 6b 20 6f |by the n|etwork o|
|00003d10| 77 6e 65 72 20 28 6f 72 | 20 74 68 65 20 61 64 6d |wner (or| the adm|
|00003d20| 69 6e 69 73 74 72 61 74 | 6f 72 73 29 2e 0a 46 72 |inistrat|ors)..Fr|
|00003d30| 65 71 75 65 6e 74 6c 79 | 2c 20 73 75 62 6e 65 74 |equently|, subnet|
|00003d40| 73 20 61 72 65 20 63 72 | 65 61 74 65 64 20 74 6f |s are cr|eated to|
|00003d50| 20 72 65 66 6c 65 63 74 | 20 65 78 69 73 74 69 6e | reflect| existin|
|00003d60| 67 20 62 6f 75 6e 64 61 | 72 69 65 73 2c 20 62 65 |g bounda|ries, be|
|00003d70| 20 74 68 65 79 0a 70 68 | 79 73 69 63 61 6c 20 28 | they.ph|ysical (|
|00003d80| 62 65 74 77 65 65 6e 20 | 74 77 6f 20 45 74 68 65 |between |two Ethe|
|00003d90| 72 6e 65 74 73 29 2c 20 | 61 64 6d 69 6e 69 73 74 |rnets), |administ|
|00003da0| 72 61 74 69 76 65 20 28 | 62 65 74 77 65 65 6e 20 |rative (|between |
|00003db0| 74 77 6f 0a 64 65 70 61 | 72 74 6d 65 6e 74 73 29 |two.depa|rtments)|
|00003dc0| 2c 20 6f 72 20 67 65 6f | 67 72 61 70 68 69 63 61 |, or geo|graphica|
|00003dd0| 6c 2c 20 61 6e 64 20 61 | 75 74 68 6f 72 69 74 79 |l, and a|uthority|
|00003de0| 20 6f 76 65 72 20 74 68 | 65 73 65 20 73 75 62 6e | over th|ese subn|
|00003df0| 65 74 73 20 69 73 0a 64 | 65 6c 65 67 61 74 65 64 |ets is.d|elegated|
|00003e00| 20 74 6f 20 73 6f 6d 65 | 20 63 6f 6e 74 61 63 74 | to some| contact|
|00003e10| 20 70 65 72 73 6f 6e 2e | 20 48 6f 77 65 76 65 72 | person.| However|
|00003e20| 2c 20 74 68 69 73 20 73 | 74 72 75 63 74 75 72 65 |, this s|tructure|
|00003e30| 20 61 66 66 65 63 74 73 | 20 6f 6e 6c 79 0a 74 68 | affects| only.th|
|00003e40| 65 20 6e 65 74 77 6f 72 | 6b 27 73 20 69 6e 74 65 |e networ|k's inte|
|00003e50| 72 6e 61 6c 20 62 65 68 | 61 76 69 6f 72 2c 20 61 |rnal beh|avior, a|
|00003e60| 6e 64 20 69 73 20 63 6f | 6d 70 6c 65 74 65 6c 79 |nd is co|mpletely|
|00003e70| 20 69 6e 76 69 73 69 62 | 6c 65 20 74 6f 20 74 68 | invisib|le to th|
|00003e80| 65 0a 6f 75 74 73 69 64 | 65 20 77 6f 72 6c 64 2e |e.outsid|e world.|
|00003e90| 0a 0a 5c 69 6e 64 65 78 | 7b 49 50 21 73 75 62 6e |..\index|{IP!subn|
|00003ea0| 65 74 7c 29 7d 0a 0a 5c | 73 75 62 73 65 63 74 69 |et|)}..\|subsecti|
|00003eb0| 6f 6e 7b 47 61 74 65 77 | 61 79 73 7d 0a 25 25 25 |on{Gatew|ays}.%%%|
|00003ec0| 25 25 25 25 25 25 25 25 | 25 25 25 25 25 25 25 25 |%%%%%%%%|%%%%%%%%|
|00003ed0| 25 25 25 25 25 25 25 25 | 25 25 25 25 25 25 25 25 |%%%%%%%%|%%%%%%%%|
|00003ee0| 25 25 25 25 25 25 25 25 | 25 25 25 25 25 25 25 25 |%%%%%%%%|%%%%%%%%|
|00003ef0| 25 25 25 25 25 25 25 25 | 25 25 25 25 25 25 0a 5c |%%%%%%%%|%%%%%%.\|
|00003f00| 6c 61 62 65 6c 7b 74 63 | 70 69 70 2e 72 6f 75 74 |label{tc|pip.rout|
|00003f10| 69 6e 67 2e 67 61 74 65 | 77 61 79 7d 0a 5c 69 6e |ing.gate|way}.\in|
|00003f20| 64 65 78 7b 69 6e 74 65 | 72 6e 65 74 77 6f 72 6b |dex{inte|rnetwork|
|00003f30| 69 6e 67 7d 0a 5c 69 6e | 64 65 78 7b 67 61 74 65 |ing}.\in|dex{gate|
|00003f40| 77 61 79 7c 28 7d 0a 0a | 53 75 62 6e 65 74 74 69 |way|(}..|Subnetti|
|00003f50| 6e 67 20 69 73 20 6e 6f | 74 20 6f 6e 6c 79 20 61 |ng is no|t only a|
|00003f60| 6e 20 6f 72 67 61 6e 69 | 7a 61 74 69 6f 6e 61 6c |n organi|zational|
|00003f70| 20 62 65 6e 65 66 69 74 | 2c 20 69 74 20 69 73 20 | benefit|, it is |
|00003f80| 66 72 65 71 75 65 6e 74 | 6c 79 20 61 0a 6e 61 74 |frequent|ly a.nat|
|00003f90| 75 72 61 6c 20 63 6f 6e | 73 65 71 75 65 6e 63 65 |ural con|sequence|
|00003fa0| 20 6f 66 20 68 61 72 64 | 77 61 72 65 20 62 6f 75 | of hard|ware bou|
|00003fb0| 6e 64 61 72 69 65 73 2e | 20 20 54 68 65 20 76 69 |ndaries.| The vi|
|00003fc0| 65 77 70 6f 69 6e 74 20 | 6f 66 20 61 20 68 6f 73 |ewpoint |of a hos|
|00003fd0| 74 20 6f 6e 0a 61 20 67 | 69 76 65 6e 20 70 68 79 |t on.a g|iven phy|
|00003fe0| 73 69 63 61 6c 20 6e 65 | 74 77 6f 72 6b 2c 20 73 |sical ne|twork, s|
|00003ff0| 75 63 68 20 61 73 20 61 | 6e 20 45 74 68 65 72 6e |uch as a|n Ethern|
|00004000| 65 74 2c 20 69 73 20 61 | 20 76 65 72 79 20 6c 69 |et, is a| very li|
|00004010| 6d 69 74 65 64 20 6f 6e | 65 3a 0a 74 68 65 20 6f |mited on|e:.the o|
|00004020| 6e 6c 79 20 68 6f 73 74 | 73 20 69 74 20 69 73 20 |nly host|s it is |
|00004030| 61 62 6c 65 20 74 6f 20 | 74 61 6c 6b 20 74 6f 20 |able to |talk to |
|00004040| 64 69 72 65 63 74 6c 79 | 20 61 72 65 20 74 68 6f |directly| are tho|
|00004050| 73 65 20 6f 66 20 74 68 | 65 20 6e 65 74 77 6f 72 |se of th|e networ|
|00004060| 6b 0a 69 74 20 69 73 20 | 6f 6e 2e 20 20 41 6c 6c |k.it is |on. All|
|00004070| 20 6f 74 68 65 72 20 68 | 6f 73 74 73 20 63 61 6e | other h|osts can|
|00004080| 20 62 65 20 61 63 63 65 | 73 73 65 64 20 6f 6e 6c | be acce|ssed onl|
|00004090| 79 20 74 68 72 6f 75 67 | 68 20 73 6f 2d 63 61 6c |y throug|h so-cal|
|000040a0| 6c 65 64 0a 5c 65 6d 70 | 68 7b 67 61 74 65 77 61 |led.\emp|h{gatewa|
|000040b0| 79 73 7d 2e 20 20 41 20 | 67 61 74 65 77 61 79 20 |ys}. A |gateway |
|000040c0| 69 73 20 61 20 68 6f 73 | 74 20 74 68 61 74 20 69 |is a hos|t that i|
|000040d0| 73 20 63 6f 6e 6e 65 63 | 74 65 64 20 74 6f 20 74 |s connec|ted to t|
|000040e0| 77 6f 20 6f 72 20 6d 6f | 72 65 0a 70 68 79 73 69 |wo or mo|re.physi|
|000040f0| 63 61 6c 20 6e 65 74 77 | 6f 72 6b 73 20 73 69 6d |cal netw|orks sim|
|00004100| 75 6c 74 61 6e 65 6f 75 | 73 6c 79 20 61 6e 64 20 |ultaneou|sly and |
|00004110| 69 73 20 63 6f 6e 66 69 | 67 75 72 65 64 20 74 6f |is confi|gured to|
|00004120| 20 73 77 69 74 63 68 20 | 70 61 63 6b 65 74 73 0a | switch |packets.|
|00004130| 62 65 74 77 65 65 6e 20 | 74 68 65 6d 2e 0a 0a 0a |between |them....|
|00004140| 46 6f 72 20 49 50 20 74 | 6f 20 62 65 20 61 62 6c |For IP t|o be abl|
|00004150| 65 20 74 6f 20 65 61 73 | 69 6c 79 20 72 65 63 6f |e to eas|ily reco|
|00004160| 67 6e 69 7a 65 20 69 66 | 20 61 20 68 6f 73 74 20 |gnize if| a host |
|00004170| 69 73 20 6f 6e 20 61 20 | 6c 6f 63 61 6c 20 70 68 |is on a |local ph|
|00004180| 79 73 69 63 61 6c 0a 6e | 65 74 77 6f 72 6b 2c 20 |ysical.n|etwork, |
|00004190| 64 69 66 66 65 72 65 6e | 74 20 70 68 79 73 69 63 |differen|t physic|
|000041a0| 61 6c 20 6e 65 74 77 6f | 72 6b 73 20 68 61 76 65 |al netwo|rks have|
|000041b0| 20 74 6f 20 62 65 6c 6f | 6e 67 20 74 6f 20 64 69 | to belo|ng to di|
|000041c0| 66 66 65 72 65 6e 74 0a | 49 50 7e 6e 65 74 77 6f |fferent.|IP~netwo|
|000041d0| 72 6b 73 2e 20 46 6f 72 | 20 65 78 61 6d 70 6c 65 |rks. For| example|
|000041e0| 20 74 68 65 20 6e 65 74 | 77 6f 72 6b 20 6e 75 6d | the net|work num|
|000041f0| 62 65 72 20 5c 68 6f 73 | 74 7b 31 34 39 2e 37 36 |ber \hos|t{149.76|
|00004200| 2e 34 2e 30 7d 20 69 73 | 0a 72 65 73 65 72 76 65 |.4.0} is|.reserve|
|00004210| 64 20 66 6f 72 20 68 6f | 73 74 73 20 6f 6e 20 74 |d for ho|sts on t|
|00004220| 68 65 20 6d 61 74 68 65 | 6d 61 74 69 63 73 20 4c |he mathe|matics L|
|00004230| 41 4e 2e 20 57 68 65 6e | 20 73 65 6e 64 69 6e 67 |AN. When| sending|
|00004240| 20 61 20 64 61 74 61 67 | 72 61 6d 20 74 6f 0a 5c | a datag|ram to.\|
|00004250| 68 6f 73 74 7b 71 75 61 | 72 6b 7d 2c 20 74 68 65 |host{qua|rk}, the|
|00004260| 20 6e 65 74 77 6f 72 6b | 20 73 6f 66 74 77 61 72 | network| softwar|
|00004270| 65 20 6f 6e 20 5c 68 6f | 73 74 7b 65 72 64 6f 73 |e on \ho|st{erdos|
|00004280| 7d 20 69 6d 6d 65 64 69 | 61 74 65 6c 79 20 73 65 |} immedi|ately se|
|00004290| 65 73 20 66 72 6f 6d 0a | 74 68 65 20 49 50 7e 61 |es from.|the IP~a|
|000042a0| 64 64 72 65 73 73 2c 20 | 5c 68 6f 73 74 7b 31 34 |ddress, |\host{14|
|000042b0| 39 2e 37 36 2e 31 32 2e | 34 7d 2c 20 74 68 61 74 |9.76.12.|4}, that|
|000042c0| 20 74 68 65 20 64 65 73 | 74 69 6e 61 74 69 6f 6e | the des|tination|
|000042d0| 20 68 6f 73 74 20 69 73 | 20 6f 6e 20 61 0a 64 69 | host is| on a.di|
|000042e0| 66 66 65 72 65 6e 74 20 | 70 68 79 73 69 63 61 6c |fferent |physical|
|000042f0| 20 6e 65 74 77 6f 72 6b | 2c 20 61 6e 64 20 74 68 | network|, and th|
|00004300| 65 72 65 66 6f 72 65 20 | 63 61 6e 20 62 65 20 72 |erefore |can be r|
|00004310| 65 61 63 68 65 64 20 6f | 6e 6c 79 20 74 68 72 6f |eached o|nly thro|
|00004320| 75 67 68 0a 61 20 67 61 | 74 65 77 61 79 20 28 5c |ugh.a ga|teway (\|
|00004330| 68 6f 73 74 7b 73 6f 70 | 68 75 73 7d 20 62 79 20 |host{sop|hus} by |
|00004340| 64 65 66 61 75 6c 74 29 | 2e 0a 0a 0a 5c 68 6f 73 |default)|....\hos|
|00004350| 74 7b 73 6f 70 68 75 73 | 7d 20 69 74 73 65 6c 66 |t{sophus|} itself|
|00004360| 20 69 73 20 63 6f 6e 6e | 65 63 74 65 64 20 74 6f | is conn|ected to|
|00004370| 20 74 77 6f 20 64 69 73 | 74 69 6e 63 74 20 73 75 | two dis|tinct su|
|00004380| 62 6e 65 74 73 3a 20 74 | 68 65 0a 4d 61 74 68 65 |bnets: t|he.Mathe|
|00004390| 6d 61 74 69 63 73 20 44 | 65 70 61 72 74 6d 65 6e |matics D|epartmen|
|000043a0| 74 2c 20 61 6e 64 20 74 | 68 65 20 63 61 6d 70 75 |t, and t|he campu|
|000043b0| 73 20 62 61 63 6b 62 6f | 6e 65 2e 20 49 74 20 61 |s backbo|ne. It a|
|000043c0| 63 63 65 73 73 65 73 20 | 65 61 63 68 0a 74 68 72 |ccesses |each.thr|
|000043d0| 6f 75 67 68 20 61 20 64 | 69 66 66 65 72 65 6e 74 |ough a d|ifferent|
|000043e0| 20 69 6e 74 65 72 66 61 | 63 65 2c 20 5c 66 69 6c | interfa|ce, \fil|
|000043f0| 65 7b 65 74 68 30 7d 20 | 61 6e 64 20 5c 66 69 6c |e{eth0} |and \fil|
|00004400| 65 7b 66 64 64 69 30 7d | 2c 0a 72 65 73 70 65 63 |e{fddi0}|,.respec|
|00004410| 74 69 76 65 6c 79 2e 20 | 20 4e 6f 77 2c 20 77 68 |tively. | Now, wh|
|00004420| 61 74 20 49 50 7e 61 64 | 64 72 65 73 73 20 64 6f |at IP~ad|dress do|
|00004430| 20 77 65 20 61 73 73 69 | 67 6e 20 69 74 3f 20 53 | we assi|gn it? S|
|00004440| 68 6f 75 6c 64 20 77 65 | 20 67 69 76 65 20 69 74 |hould we| give it|
|00004450| 0a 6f 6e 65 20 6f 6e 20 | 73 75 62 6e 65 74 20 5c |.one on |subnet \|
|00004460| 68 6f 73 74 7b 31 34 39 | 2e 37 36 2e 31 2e 30 7d |host{149|.76.1.0}|
|00004470| 2c 20 6f 72 20 6f 6e 20 | 5c 68 6f 73 74 7b 31 34 |, or on |\host{14|
|00004480| 39 2e 37 36 2e 34 2e 30 | 7d 3f 0a 0a 0a 54 68 65 |9.76.4.0|}?...The|
|00004490| 20 61 6e 73 77 65 72 20 | 69 73 3a 20 62 6f 74 68 | answer |is: both|
|000044a0| 2e 20 57 68 65 6e 20 74 | 61 6c 6b 69 6e 67 20 74 |. When t|alking t|
|000044b0| 6f 20 61 20 68 6f 73 74 | 20 6f 6e 20 74 68 65 20 |o a host| on the |
|000044c0| 4d 61 74 68 73 20 4c 41 | 4e 2c 0a 5c 68 6f 73 74 |Maths LA|N,.\host|
|000044d0| 7b 73 6f 70 68 75 73 7d | 20 73 68 6f 75 6c 64 20 |{sophus}| should |
|000044e0| 75 73 65 20 61 6e 20 49 | 50 7e 61 64 64 72 65 73 |use an I|P~addres|
|000044f0| 73 20 6f 66 20 5c 68 6f | 73 74 7b 31 34 39 2e 37 |s of \ho|st{149.7|
|00004500| 36 2e 34 2e 31 7d 2c 20 | 61 6e 64 20 77 68 65 6e |6.4.1}, |and when|
|00004510| 0a 74 61 6c 6b 69 6e 67 | 20 74 6f 20 61 20 68 6f |.talking| to a ho|
|00004520| 73 74 20 6f 6e 20 74 68 | 65 20 62 61 63 6b 62 6f |st on th|e backbo|
|00004530| 6e 65 2c 20 69 74 20 73 | 68 6f 75 6c 64 20 75 73 |ne, it s|hould us|
|00004540| 65 20 5c 68 6f 73 74 7b | 31 34 39 2e 37 36 2e 31 |e \host{|149.76.1|
|00004550| 2e 34 7d 2e 0a 0a 0a 54 | 68 75 73 2c 20 61 20 67 |.4}....T|hus, a g|
|00004560| 61 74 65 77 61 79 20 69 | 73 20 61 73 73 69 67 6e |ateway i|s assign|
|00004570| 65 64 20 6f 6e 65 20 49 | 50 7e 61 64 64 72 65 73 |ed one I|P~addres|
|00004580| 73 20 70 65 72 20 6e 65 | 74 77 6f 72 6b 20 69 74 |s per ne|twork it|
|00004590| 20 69 73 20 6f 6e 2e 20 | 20 54 68 65 73 65 0a 61 | is on. | These.a|
|000045a0| 64 64 72 65 73 73 65 73 | 7e 2d 2d 2d 20 61 6c 6f |ddresses|~--- alo|
|000045b0| 6e 67 20 77 69 74 68 20 | 74 68 65 20 63 6f 72 72 |ng with |the corr|
|000045c0| 65 73 70 6f 6e 64 69 6e | 67 20 6e 65 74 6d 61 73 |espondin|g netmas|
|000045d0| 6b 7e 2d 2d 2d 20 61 72 | 65 20 74 69 65 64 20 74 |k~--- ar|e tied t|
|000045e0| 6f 20 74 68 65 0a 69 6e | 74 65 72 66 61 63 65 20 |o the.in|terface |
|000045f0| 74 68 65 20 73 75 62 6e | 65 74 20 69 73 20 61 63 |the subn|et is ac|
|00004600| 63 65 73 73 65 64 20 74 | 68 72 6f 75 67 68 2e 20 |cessed t|hrough. |
|00004610| 54 68 75 73 2c 20 74 68 | 65 20 6d 61 70 70 69 6e |Thus, th|e mappin|
|00004620| 67 20 6f 66 0a 69 6e 74 | 65 72 66 61 63 65 73 20 |g of.int|erfaces |
|00004630| 61 6e 64 20 61 64 64 72 | 65 73 73 65 73 20 66 6f |and addr|esses fo|
|00004640| 72 20 5c 68 6f 73 74 7b | 73 6f 70 68 75 73 7d 20 |r \host{|sophus} |
|00004650| 77 6f 75 6c 64 20 6c 6f | 6f 6b 20 6c 69 6b 65 20 |would lo|ok like |
|00004660| 74 68 69 73 3a 0a 0a 5c | 62 65 67 69 6e 7b 63 65 |this:..\|begin{ce|
|00004670| 6e 74 65 72 7d 0a 5c 62 | 65 67 69 6e 7b 74 61 62 |nter}.\b|egin{tab|
|00004680| 75 6c 61 72 7d 7b 7c 6c | 7c 72 7c 72 7c 7d 0a 20 |ular}{|l||r|r|}. |
|00004690| 5c 68 6c 69 6e 65 0a 20 | 69 66 61 63 65 09 09 26 |\hline. |iface..&|
|000046a0| 20 61 64 64 72 65 73 73 | 09 09 26 20 6e 65 74 6d | address|..& netm|
|000046b0| 61 73 6b 09 09 5c 5c 0a | 20 5c 68 6c 69 6e 65 5c |ask..\\.| \hline\|
|000046c0| 68 6c 69 6e 65 0a 20 5c | 66 69 6c 65 7b 65 74 68 |hline. \|file{eth|
|000046d0| 30 7d 09 26 20 5c 68 6f | 73 74 7b 31 34 39 2e 37 |0}.& \ho|st{149.7|
|000046e0| 36 2e 34 2e 31 7d 09 26 | 20 5c 68 6f 73 74 7b 32 |6.4.1}.&| \host{2|
|000046f0| 35 35 2e 32 35 35 2e 32 | 35 35 2e 30 7d 09 5c 5c |55.255.2|55.0}.\\|
|00004700| 0a 20 5c 66 69 6c 65 7b | 66 64 64 69 30 7d 09 26 |. \file{|fddi0}.&|
|00004710| 20 5c 68 6f 73 74 7b 31 | 34 39 2e 37 36 2e 31 2e | \host{1|49.76.1.|
|00004720| 34 7d 09 26 20 5c 68 6f | 73 74 7b 32 35 35 2e 32 |4}.& \ho|st{255.2|
|00004730| 35 35 2e 32 35 35 2e 30 | 7d 09 5c 5c 0a 20 5c 66 |55.255.0|}.\\. \f|
|00004740| 69 6c 65 7b 6c 6f 7d 09 | 26 20 5c 68 6f 73 74 7b |ile{lo}.|& \host{|
|00004750| 31 32 37 2e 30 2e 30 2e | 31 7d 09 26 20 5c 68 6f |127.0.0.|1}.& \ho|
|00004760| 73 74 7b 32 35 35 2e 30 | 2e 30 2e 30 7d 09 5c 5c |st{255.0|.0.0}.\\|
|00004770| 0a 20 5c 68 6c 69 6e 65 | 0a 5c 65 6e 64 7b 74 61 |. \hline|.\end{ta|
|00004780| 62 75 6c 61 72 7d 0a 5c | 65 6e 64 7b 63 65 6e 74 |bular}.\|end{cent|
|00004790| 65 72 7d 0a 0a 54 68 65 | 20 6c 61 73 74 20 65 6e |er}..The| last en|
|000047a0| 74 72 79 20 64 65 73 63 | 72 69 62 65 73 20 74 68 |try desc|ribes th|
|000047b0| 65 20 6c 6f 6f 70 62 61 | 63 6b 20 69 6e 74 65 72 |e loopba|ck inter|
|000047c0| 66 61 63 65 20 5c 66 69 | 6c 65 7b 6c 6f 7d 2c 20 |face \fi|le{lo}, |
|000047d0| 77 68 69 63 68 20 77 61 | 73 0a 69 6e 74 72 6f 64 |which wa|s.introd|
|000047e0| 75 63 65 64 20 61 62 6f | 76 65 2e 0a 0a 0a 46 69 |uced abo|ve....Fi|
|000047f0| 67 75 72 65 7e 5c 72 65 | 66 7b 69 6e 74 72 6f 2e |gure~\re|f{intro.|
|00004800| 66 69 67 2e 69 70 7d 20 | 73 68 6f 77 73 20 61 20 |fig.ip} |shows a |
|00004810| 70 61 72 74 20 6f 66 20 | 74 68 65 20 6e 65 74 77 |part of |the netw|
|00004820| 6f 72 6b 20 74 6f 70 6f | 6c 6f 67 79 20 61 74 0a |ork topo|logy at.|
|00004830| 47 72 6f 75 63 68 6f 20 | 4d 61 72 78 20 55 6e 69 |Groucho |Marx Uni|
|00004840| 76 65 72 73 69 74 79 20 | 28 47 4d 55 29 2e 20 20 |versity |(GMU). |
|00004850| 48 6f 73 74 73 20 74 68 | 61 74 20 61 72 65 20 6f |Hosts th|at are o|
|00004860| 6e 20 74 77 6f 20 73 75 | 62 6e 65 74 73 20 61 74 |n two su|bnets at|
|00004870| 20 74 68 65 0a 73 61 6d | 65 20 74 69 6d 65 20 61 | the.sam|e time a|
|00004880| 72 65 20 73 68 6f 77 6e | 20 77 69 74 68 20 62 6f |re shown| with bo|
|00004890| 74 68 20 61 64 64 72 65 | 73 73 65 73 2e 0a 0a 5c |th addre|sses...\|
|000048a0| 62 65 67 69 6e 7b 66 69 | 67 75 72 65 7d 5b 68 74 |begin{fi|gure}[ht|
|000048b0| 62 70 5d 0a 5c 69 66 74 | 65 78 0a 20 5c 69 66 70 |bp].\ift|ex. \ifp|
|000048c0| 73 0a 20 20 5c 62 65 67 | 69 6e 7b 63 65 6e 74 65 |s. \beg|in{cente|
|000048d0| 72 7d 0a 20 20 20 5c 6d | 62 6f 78 7b 5c 65 70 73 |r}. \m|box{\eps|
|000048e0| 66 66 69 6c 65 7b 66 69 | 67 75 72 65 73 2f 67 72 |ffile{fi|gures/gr|
|000048f0| 6f 75 63 68 6f 2e 65 70 | 73 66 7d 7d 0a 20 20 5c |oucho.ep|sf}}. \|
|00004900| 65 6e 64 7b 63 65 6e 74 | 65 72 7d 0a 20 5c 65 6c |end{cent|er}. \el|
|00004910| 73 65 0a 20 20 25 20 5c | 66 6f 6e 74 5c 65 67 74 |se. % \|font\egt|
|00004920| 74 74 3d 63 6d 74 74 38 | 0a 20 20 25 20 5c 66 6f |tt=cmtt8|. % \fo|
|00004930| 6e 74 5c 74 77 6c 74 74 | 3d 63 6d 74 74 31 32 0a |nt\twltt|=cmtt12.|
|00004940| 20 20 25 20 5c 66 6f 6e | 74 5c 73 65 76 72 6d 3d | % \fon|t\sevrm=|
|00004950| 63 6d 72 37 0a 20 20 25 | 20 5c 66 6f 6e 74 5c 74 |cmr7. %| \font\t|
|00004960| 65 6e 69 74 3d 63 6d 74 | 69 31 30 0a 20 20 5c 62 |enit=cmt|i10. \b|
|00004970| 65 67 69 6e 7b 63 65 6e | 74 65 72 7d 0a 20 20 20 |egin{cen|ter}. |
|00004980| 5c 69 6e 70 75 74 7b 67 | 72 6f 75 63 68 6f 2e 65 |\input{g|roucho.e|
|00004990| 65 70 69 63 7d 0a 20 20 | 5c 65 6e 64 7b 63 65 6e |epic}. |\end{cen|
|000049a0| 74 65 72 7d 0a 20 5c 66 | 69 0a 5c 65 6c 73 65 0a |ter}. \f|i.\else.|
|000049b0| 25 25 20 54 68 69 73 20 | 6e 6f 64 65 20 69 6e 63 |%% This |node inc|
|000049c0| 6c 75 64 65 73 20 61 6e | 20 41 53 43 49 49 20 56 |ludes an| ASCII V|
|000049d0| 65 72 73 69 6f 6e 20 6f | 66 20 74 68 65 20 61 62 |ersion o|f the ab|
|000049e0| 6f 76 65 20 47 4d 55 20 | 70 69 63 74 75 72 65 20 |ove GMU |picture |
|000049f0| 66 6f 72 20 74 65 78 69 | 6e 66 6f 2e 0a 20 5c 76 |for texi|nfo.. \v|
|00004a00| 65 72 62 69 6e 63 6c 75 | 64 65 7b 67 72 6f 75 63 |erbinclu|de{grouc|
|00004a10| 68 6f 2e 61 73 63 69 69 | 7d 0a 5c 66 69 0a 20 5c |ho.ascii|}.\fi. \|
|00004a20| 63 61 70 74 69 6f 6e 7b | 0a 20 20 5c 6c 61 62 65 |caption{|. \labe|
|00004a30| 6c 7b 69 6e 74 72 6f 2e | 66 69 67 2e 69 70 7d 0a |l{intro.|fig.ip}.|
|00004a40| 20 20 41 20 70 61 72 74 | 20 6f 66 20 74 68 65 20 | A part| of the |
|00004a50| 6e 65 74 20 74 6f 70 6f | 6c 6f 67 79 20 61 74 20 |net topo|logy at |
|00004a60| 47 72 6f 75 63 68 6f 20 | 4d 61 72 78 20 55 6e 69 |Groucho |Marx Uni|
|00004a70| 76 2e 0a 20 7d 0a 5c 65 | 6e 64 7b 66 69 67 75 72 |v.. }.\e|nd{figur|
|00004a80| 65 7d 0a 0a 0a 47 65 6e | 65 72 61 6c 6c 79 2c 20 |e}...Gen|erally, |
|00004a90| 79 6f 75 20 63 61 6e 20 | 69 67 6e 6f 72 65 20 74 |you can |ignore t|
|00004aa0| 68 65 20 73 75 62 74 6c | 65 20 64 69 66 66 65 72 |he subtl|e differ|
|00004ab0| 65 6e 63 65 20 62 65 74 | 77 65 65 6e 20 61 74 74 |ence bet|ween att|
|00004ac0| 61 63 68 69 6e 67 20 61 | 6e 0a 61 64 64 72 65 73 |aching a|n.addres|
|00004ad0| 73 20 74 6f 20 61 20 68 | 6f 73 74 20 6f 72 20 69 |s to a h|ost or i|
|00004ae0| 74 73 20 69 6e 74 65 72 | 66 61 63 65 2e 20 46 6f |ts inter|face. Fo|
|00004af0| 72 20 68 6f 73 74 73 20 | 74 68 61 74 20 61 72 65 |r hosts |that are|
|00004b00| 20 6f 6e 20 6f 6e 65 20 | 6e 65 74 77 6f 72 6b 0a | on one |network.|
|00004b10| 6f 6e 6c 79 2c 20 6c 69 | 6b 65 20 5c 68 6f 73 74 |only, li|ke \host|
|00004b20| 7b 65 72 64 6f 73 7d 2c | 20 79 6f 75 20 77 6f 75 |{erdos},| you wou|
|00004b30| 6c 64 20 67 65 6e 65 72 | 61 6c 6c 79 20 72 65 66 |ld gener|ally ref|
|00004b40| 65 72 20 6f 66 20 74 68 | 65 20 68 6f 73 74 20 61 |er of th|e host a|
|00004b50| 73 0a 68 61 76 69 6e 67 | 20 74 68 69 73 2d 61 6e |s.having| this-an|
|00004b60| 64 2d 74 68 61 74 20 49 | 50 7e 61 64 64 72 65 73 |d-that I|P~addres|
|00004b70| 73 20 61 6c 74 68 6f 75 | 67 68 20 73 74 72 69 63 |s althou|gh stric|
|00004b80| 74 6c 79 20 73 70 65 61 | 6b 69 6e 67 2c 20 69 74 |tly spea|king, it|
|00004b90| 27 73 20 74 68 65 20 45 | 74 68 65 72 6e 65 74 0a |'s the E|thernet.|
|00004ba0| 69 6e 74 65 72 66 61 63 | 65 20 74 68 61 74 20 68 |interfac|e that h|
|00004bb0| 61 73 20 74 68 69 73 20 | 49 50 7e 61 64 64 72 65 |as this |IP~addre|
|00004bc0| 73 73 2e 20 48 6f 77 65 | 76 65 72 2c 20 74 68 69 |ss. Howe|ver, thi|
|00004bd0| 73 20 64 69 73 74 69 6e | 63 74 69 6f 6e 20 69 73 |s distin|ction is|
|00004be0| 20 6f 6e 6c 79 0a 72 65 | 61 6c 6c 79 20 69 6d 70 | only.re|ally imp|
|00004bf0| 6f 72 74 61 6e 74 20 77 | 68 65 6e 20 79 6f 75 20 |ortant w|hen you |
|00004c00| 72 65 66 65 72 20 74 6f | 20 61 20 67 61 74 65 77 |refer to| a gatew|
|00004c10| 61 79 2e 0a 0a 0a 25 20 | 46 72 65 71 75 65 6e 74 |ay....% |Frequent|
|00004c20| 6c 79 2c 20 74 68 69 73 | 20 69 6e 76 6f 6c 76 65 |ly, this| involve|
|00004c30| 73 20 73 70 6c 69 74 74 | 69 6e 67 20 61 6e 20 65 |s splitt|ing an e|
|00004c40| 78 69 73 74 69 6e 67 20 | 73 75 62 6e 65 74 20 65 |xisting |subnet e|
|00004c50| 76 65 6e 20 66 75 72 74 | 68 65 72 2e 0a 25 20 46 |ven furt|her..% F|
|00004c60| 6f 72 20 65 78 61 6d 70 | 6c 65 2c 20 74 68 65 20 |or examp|le, the |
|00004c70| 4d 61 74 68 65 6d 65 61 | 74 69 63 73 20 44 65 70 |Mathemea|tics Dep|
|00004c80| 61 72 74 6d 65 6e 74 20 | 72 75 6e 73 20 74 77 6f |artment |runs two|
|00004c90| 20 45 74 68 65 72 6e 65 | 74 73 20 74 68 61 74 20 | Etherne|ts that |
|00004ca0| 61 72 65 0a 25 20 6a 6f | 69 6e 65 64 20 62 79 20 |are.% jo|ined by |
|00004cb0| 74 68 65 20 67 61 74 65 | 77 61 79 20 74 68 61 74 |the gate|way that|
|00004cc0| 20 61 6c 73 6f 20 70 72 | 6f 76 69 64 65 73 20 74 | also pr|ovides t|
|00004cd0| 68 65 20 6c 69 6e 6b 20 | 74 6f 20 74 68 65 20 46 |he link |to the F|
|00004ce0| 44 44 49 20 63 61 6d 70 | 75 73 0a 25 20 62 61 63 |DDI camp|us.% bac|
|00004cf0| 6b 62 6f 6e 65 2e 20 54 | 6f 20 62 65 20 61 62 6c |kbone. T|o be abl|
|00004d00| 65 20 74 6f 20 70 65 72 | 66 6f 72 6d 20 72 6f 75 |e to per|form rou|
|00004d10| 74 69 6e 67 20 62 65 74 | 77 65 65 6e 20 74 68 65 |ting bet|ween the|
|00004d20| 73 65 2c 20 74 68 65 20 | 6e 65 74 77 6f 72 6b 0a |se, the |network.|
|00004d30| 25 20 5c 68 6f 73 74 7b | 31 34 39 2e 37 36 2e 34 |% \host{|149.76.4|
|00004d40| 2e 30 7d 20 69 73 20 73 | 75 62 64 69 76 69 64 65 |.0} is s|ubdivide|
|00004d50| 64 20 69 6e 74 6f 20 74 | 77 6f 20 73 75 62 2d 73 |d into t|wo sub-s|
|00004d60| 75 62 6e 65 74 73 20 6f | 66 20 31 32 36 20 68 6f |ubnets o|f 126 ho|
|00004d70| 73 74 73 0a 25 20 65 61 | 63 68 2e 20 54 68 65 20 |sts.% ea|ch. The |
|00004d80| 6e 65 74 6d 61 73 6b 20 | 66 6f 72 20 74 68 65 73 |netmask |for thes|
|00004d90| 65 20 69 73 20 5c 68 6f | 73 74 7b 32 35 35 2e 32 |e is \ho|st{255.2|
|00004da0| 35 35 2e 32 35 35 2e 31 | 32 38 7d 2c 20 61 6e 64 |55.255.1|28}, and|
|00004db0| 20 68 6f 73 74 73 0a 25 | 20 6f 6e 20 65 61 63 68 | hosts.%| on each|
|00004dc0| 20 45 74 68 65 72 6e 65 | 74 20 68 61 76 65 20 61 | Etherne|t have a|
|00004dd0| 64 64 72 65 73 73 65 73 | 20 66 72 6f 6d 20 74 68 |ddresses| from th|
|00004de0| 65 20 72 61 6e 67 65 73 | 20 5c 68 6f 73 74 7b 31 |e ranges| \host{1|
|00004df0| 34 39 2e 37 36 2e 34 2e | 31 7d 0a 25 20 74 68 72 |49.76.4.|1}.% thr|
|00004e00| 6f 75 67 68 20 5c 68 6f | 73 74 7b 31 34 39 2e 37 |ough \ho|st{149.7|
|00004e10| 36 2e 34 2e 31 32 37 7d | 2c 20 61 6e 64 20 5c 68 |6.4.127}|, and \h|
|00004e20| 6f 73 74 7b 31 34 39 2e | 37 36 2e 34 2e 31 32 39 |ost{149.|76.4.129|
|00004e30| 7d 0a 25 20 74 68 72 6f | 75 67 68 20 5c 68 6f 73 |}.% thro|ugh \hos|
|00004e40| 74 7b 31 34 39 2e 37 36 | 2e 34 2e 32 35 34 7d 2c |t{149.76|.4.254},|
|00004e50| 20 72 65 73 70 65 63 74 | 69 76 65 6c 79 2e 0a 0a | respect|ively...|
|00004e60| 5c 69 6e 64 65 78 7b 67 | 61 74 65 77 61 79 7c 29 |\index{g|ateway|)|
|00004e70| 7d 0a 0a 5c 73 75 62 73 | 65 63 74 69 6f 6e 7b 54 |}..\subs|ection{T|
|00004e80| 68 65 20 52 6f 75 74 69 | 6e 67 20 54 61 62 6c 65 |he Routi|ng Table|
|00004e90| 7d 0a 25 25 25 25 25 25 | 25 25 25 25 25 25 25 25 |}.%%%%%%|%%%%%%%%|
|00004ea0| 25 25 25 25 25 25 25 25 | 25 25 25 25 25 25 25 25 |%%%%%%%%|%%%%%%%%|
|00004eb0| 25 25 25 25 25 25 25 25 | 25 25 25 25 25 25 25 25 |%%%%%%%%|%%%%%%%%|
|00004ec0| 25 25 25 25 25 25 25 25 | 25 25 25 25 25 25 25 25 |%%%%%%%%|%%%%%%%%|
|00004ed0| 25 25 25 0a 5c 6c 61 62 | 65 6c 7b 74 63 70 69 70 |%%%.\lab|el{tcpip|
|00004ee0| 2e 72 6f 75 74 69 6e 67 | 2e 74 61 62 6c 65 7d 0a |.routing|.table}.|
|00004ef0| 5c 69 6e 64 65 78 7b 49 | 50 21 72 6f 75 74 69 6e |\index{I|P!routin|
|00004f00| 67 7d 0a 5c 69 6e 64 65 | 78 7b 49 50 21 72 6f 75 |g}.\inde|x{IP!rou|
|00004f10| 74 69 6e 67 20 74 61 62 | 6c 65 7d 0a 5c 69 6e 64 |ting tab|le}.\ind|
|00004f20| 65 78 7b 72 6f 75 74 69 | 6e 67 21 74 61 62 6c 65 |ex{routi|ng!table|
|00004f30| 7d 0a 0a 57 65 20 61 72 | 65 20 6e 6f 77 20 66 6f |}..We ar|e now fo|
|00004f40| 63 75 73 69 6e 67 20 6f | 75 72 20 61 74 74 65 6e |cusing o|ur atten|
|00004f50| 74 69 6f 6e 20 6f 6e 20 | 68 6f 77 20 49 50 20 63 |tion on |how IP c|
|00004f60| 68 6f 6f 73 65 73 20 61 | 20 67 61 74 65 77 61 79 |hooses a| gateway|
|00004f70| 20 74 6f 20 75 73 65 0a | 77 68 65 6e 20 64 65 6c | to use.|when del|
|00004f80| 69 76 65 72 69 6e 67 20 | 61 20 64 61 74 61 67 72 |ivering |a datagr|
|00004f90| 61 6d 20 74 6f 20 61 20 | 72 65 6d 6f 74 65 20 6e |am to a |remote n|
|00004fa0| 65 74 77 6f 72 6b 2e 0a | 0a 0a 57 65 20 68 61 76 |etwork..|..We hav|
|00004fb0| 65 20 73 65 65 6e 20 62 | 65 66 6f 72 65 20 74 68 |e seen b|efore th|
|00004fc0| 61 74 20 5c 68 6f 73 74 | 7b 65 72 64 6f 73 7d 2c |at \host|{erdos},|
|00004fd0| 20 77 68 65 6e 20 67 69 | 76 65 6e 20 61 20 64 61 | when gi|ven a da|
|00004fe0| 74 61 67 72 61 6d 20 66 | 6f 72 0a 5c 68 6f 73 74 |tagram f|or.\host|
|00004ff0| 7b 71 75 61 72 6b 7d 2c | 20 63 68 65 63 6b 73 20 |{quark},| checks |
|00005000| 74 68 65 20 64 65 73 74 | 69 6e 61 74 69 6f 6e 20 |the dest|ination |
|00005010| 61 64 64 72 65 73 73 20 | 61 6e 64 20 66 69 6e 64 |address |and find|
|00005020| 73 20 69 74 20 69 73 20 | 6e 6f 74 20 6f 6e 20 74 |s it is |not on t|
|00005030| 68 65 0a 6c 6f 63 61 6c | 20 6e 65 74 77 6f 72 6b |he.local| network|
|00005040| 2e 20 49 74 20 74 68 65 | 72 65 66 6f 72 65 20 73 |. It the|refore s|
|00005050| 65 6e 64 73 20 69 74 20 | 74 6f 20 74 68 65 20 64 |ends it |to the d|
|00005060| 65 66 61 75 6c 74 20 67 | 61 74 65 77 61 79 2c 0a |efault g|ateway,.|
|00005070| 5c 68 6f 73 74 7b 73 6f | 70 68 75 73 7d 2c 20 77 |\host{so|phus}, w|
|00005080| 68 69 63 68 20 69 73 20 | 6e 6f 77 20 62 61 73 69 |hich is |now basi|
|00005090| 63 61 6c 6c 79 20 66 61 | 63 65 64 20 77 69 74 68 |cally fa|ced with|
|000050a0| 20 74 68 65 20 73 61 6d | 65 20 74 61 73 6b 2e 0a | the sam|e task..|
|000050b0| 5c 68 6f 73 74 7b 73 6f | 70 68 75 73 7d 20 72 65 |\host{so|phus} re|
|000050c0| 63 6f 67 6e 69 7a 65 73 | 20 74 68 61 74 20 5c 68 |cognizes| that \h|
|000050d0| 6f 73 74 7b 71 75 61 72 | 6b 7d 20 69 73 20 6e 6f |ost{quar|k} is no|
|000050e0| 74 20 6f 6e 20 61 6e 79 | 20 6f 66 20 74 68 65 20 |t on any| of the |
|000050f0| 6e 65 74 77 6f 72 6b 73 | 0a 69 74 20 69 73 20 63 |networks|.it is c|
|00005100| 6f 6e 6e 65 63 74 65 64 | 20 74 6f 20 64 69 72 65 |onnected| to dire|
|00005110| 63 74 6c 79 2c 20 73 6f | 20 69 74 20 68 61 73 20 |ctly, so| it has |
|00005120| 74 6f 20 66 69 6e 64 20 | 79 65 74 20 61 6e 6f 74 |to find |yet anot|
|00005130| 68 65 72 20 67 61 74 65 | 77 61 79 20 74 6f 0a 66 |her gate|way to.f|
|00005140| 6f 72 77 61 72 64 20 69 | 74 20 74 68 72 6f 75 67 |orward i|t throug|
|00005150| 68 2e 20 54 68 65 20 63 | 6f 72 72 65 63 74 20 63 |h. The c|orrect c|
|00005160| 68 6f 69 63 65 20 77 6f | 75 6c 64 20 62 65 20 5c |hoice wo|uld be \|
|00005170| 66 69 6c 65 7b 6e 69 65 | 6c 73 7d 2c 20 74 68 65 |file{nie|ls}, the|
|00005180| 0a 67 61 74 65 77 61 79 | 20 74 6f 20 74 68 65 20 |.gateway| to the |
|00005190| 50 68 79 73 69 63 73 20 | 44 65 70 61 72 74 6d 65 |Physics |Departme|
|000051a0| 6e 74 2e 20 5c 68 6f 73 | 74 7b 73 6f 70 68 75 73 |nt. \hos|t{sophus|
|000051b0| 7d 20 74 68 65 72 65 66 | 6f 72 65 20 6e 65 65 64 |} theref|ore need|
|000051c0| 73 20 73 6f 6d 65 0a 69 | 6e 66 6f 72 6d 61 74 69 |s some.i|nformati|
|000051d0| 6f 6e 20 74 6f 20 61 73 | 73 6f 63 69 61 74 65 20 |on to as|sociate |
|000051e0| 61 20 64 65 73 74 69 6e | 61 74 69 6f 6e 20 6e 65 |a destin|ation ne|
|000051f0| 74 77 6f 72 6b 20 77 69 | 74 68 20 61 20 73 75 69 |twork wi|th a sui|
|00005200| 74 61 62 6c 65 20 67 61 | 74 65 77 61 79 2e 0a 0a |table ga|teway...|
|00005210| 0a 54 68 65 20 72 6f 75 | 74 69 6e 67 20 69 6e 66 |.The rou|ting inf|
|00005220| 6f 72 6d 61 74 69 6f 6e | 20 49 50 20 75 73 65 73 |ormation| IP uses|
|00005230| 20 66 6f 72 20 74 68 69 | 73 20 69 73 20 62 61 73 | for thi|s is bas|
|00005240| 69 63 61 6c 6c 79 20 61 | 20 74 61 62 6c 65 20 6c |ically a| table l|
|00005250| 69 6e 6b 69 6e 67 0a 6e | 65 74 77 6f 72 6b 73 20 |inking.n|etworks |
|00005260| 74 6f 20 67 61 74 65 77 | 61 79 73 20 74 68 61 74 |to gatew|ays that|
|00005270| 20 72 65 61 63 68 20 74 | 68 65 6d 2e 20 41 20 63 | reach t|hem. A c|
|00005280| 61 74 63 68 2d 61 6c 6c | 20 65 6e 74 72 79 20 28 |atch-all| entry (|
|00005290| 74 68 65 20 5c 65 6d 70 | 68 7b 64 65 66 61 75 6c |the \emp|h{defaul|
|000052a0| 74 0a 72 6f 75 74 65 7d | 29 20 6d 75 73 74 20 67 |t.route}|) must g|
|000052b0| 65 6e 65 72 61 6c 6c 79 | 20 62 65 20 73 75 70 70 |enerally| be supp|
|000052c0| 6c 69 65 64 2c 20 74 6f | 6f 3b 20 74 68 69 73 20 |lied, to|o; this |
|000052d0| 69 73 20 74 68 65 20 67 | 61 74 65 77 61 79 20 61 |is the g|ateway a|
|000052e0| 73 73 6f 63 69 61 74 65 | 64 0a 77 69 74 68 20 6e |ssociate|d.with n|
|000052f0| 65 74 77 6f 72 6b 20 5c | 68 6f 73 74 7b 30 2e 30 |etwork \|host{0.0|
|00005300| 2e 30 2e 30 7d 2e 20 41 | 6c 6c 20 70 61 63 6b 65 |.0.0}. A|ll packe|
|00005310| 74 73 20 74 6f 20 61 6e | 20 75 6e 6b 6e 6f 77 6e |ts to an| unknown|
|00005320| 20 6e 65 74 77 6f 72 6b | 20 61 72 65 20 73 65 6e | network| are sen|
|00005330| 74 0a 74 68 72 6f 75 67 | 68 20 74 68 65 20 64 65 |t.throug|h the de|
|00005340| 66 61 75 6c 74 20 72 6f | 75 74 65 2e 20 20 4f 6e |fault ro|ute. On|
|00005350| 20 5c 68 6f 73 74 7b 73 | 6f 70 68 75 73 7d 2c 20 | \host{s|ophus}, |
|00005360| 74 68 69 73 20 74 61 62 | 6c 65 20 6d 69 67 68 74 |this tab|le might|
|00005370| 20 6c 6f 6f 6b 20 6c 69 | 6b 65 0a 74 68 69 73 3a | look li|ke.this:|
|00005380| 0a 0a 0a 5c 62 65 67 69 | 6e 7b 63 65 6e 74 65 72 |...\begi|n{center|
|00005390| 7d 0a 20 5c 62 65 67 69 | 6e 7b 74 61 62 75 6c 61 |}. \begi|n{tabula|
|000053a0| 72 7d 7b 7c 6c 7c 6c 7c | 6c 7c 7d 0a 20 20 5c 68 |r}{|l|l||l|}. \h|
|000053b0| 6c 69 6e 65 0a 20 20 4e | 65 74 77 6f 72 6b 20 20 |line. N|etwork |
|000053c0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 26 20 47 | | & G|
|000053d0| 61 74 65 77 61 79 20 20 | 20 20 20 20 20 20 20 20 |ateway | |
|000053e0| 20 20 20 20 20 26 20 49 | 6e 74 65 72 66 61 63 65 | & I|nterface|
|000053f0| 09 5c 5c 0a 20 20 5c 68 | 6c 69 6e 65 5c 68 6c 69 |.\\. \h|line\hli|
|00005400| 6e 65 0a 20 20 5c 68 6f | 73 74 7b 31 34 39 2e 37 |ne. \ho|st{149.7|
|00005410| 36 2e 31 2e 30 7d 20 20 | 20 20 20 26 20 2d 09 09 |6.1.0} | & -..|
|00005420| 20 20 20 20 20 20 20 20 | 26 20 5c 68 6f 73 74 7b | |& \host{|
|00005430| 66 64 64 69 30 7d 09 5c | 5c 0a 20 20 5c 68 6f 73 |fddi0}.\|\. \hos|
|00005440| 74 7b 31 34 39 2e 37 36 | 2e 32 2e 30 7d 20 20 20 |t{149.76|.2.0} |
|00005450| 20 20 26 20 5c 68 6f 73 | 74 7b 31 34 39 2e 37 36 | & \hos|t{149.76|
|00005460| 2e 31 2e 32 7d 20 20 20 | 20 20 26 20 5c 68 6f 73 |.1.2} | & \hos|
|00005470| 74 7b 66 64 64 69 30 7d | 09 5c 5c 0a 20 20 5c 68 |t{fddi0}|.\\. \h|
|00005480| 6f 73 74 7b 31 34 39 2e | 37 36 2e 33 2e 30 7d 20 |ost{149.|76.3.0} |
|00005490| 20 20 20 20 26 20 5c 68 | 6f 73 74 7b 31 34 39 2e | & \h|ost{149.|
|000054a0| 37 36 2e 31 2e 33 7d 20 | 20 20 20 20 26 20 5c 68 |76.1.3} | & \h|
|000054b0| 6f 73 74 7b 66 64 64 69 | 30 7d 09 5c 5c 0a 20 20 |ost{fddi|0}.\\. |
|000054c0| 5c 68 6f 73 74 7b 31 34 | 39 2e 37 36 2e 34 2e 30 |\host{14|9.76.4.0|
|000054d0| 7d 20 20 20 20 20 26 20 | 2d 20 20 20 20 20 20 20 |} & |- |
|000054e0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 26 20 | | & |
|000054f0| 5c 68 6f 73 74 7b 65 74 | 68 30 7d 09 5c 5c 0a 20 |\host{et|h0}.\\. |
|00005500| 20 5c 68 6f 73 74 7b 31 | 34 39 2e 37 36 2e 35 2e | \host{1|49.76.5.|
|00005510| 30 7d 20 20 20 20 20 26 | 20 5c 68 6f 73 74 7b 31 |0} &| \host{1|
|00005520| 34 39 2e 37 36 2e 31 2e | 35 7d 20 20 20 20 20 26 |49.76.1.|5} &|
|00005530| 20 5c 68 6f 73 74 7b 66 | 64 64 69 30 7d 09 5c 5c | \host{f|ddi0}.\\|
|00005540| 0a 20 20 5c 6c 64 6f 74 | 73 20 20 20 20 20 20 20 |. \ldot|s |
|00005550| 20 20 20 20 20 20 20 20 | 20 26 20 5c 6c 64 6f 74 | | & \ldot|
|00005560| 73 20 20 20 20 20 20 20 | 20 20 20 20 20 20 09 26 |s | .&|
|00005570| 20 5c 6c 64 6f 74 73 09 | 5c 5c 0a 20 20 5c 68 6f | \ldots.|\\. \ho|
|00005580| 73 74 7b 30 2e 30 2e 30 | 2e 30 7d 20 20 20 20 20 |st{0.0.0|.0} |
|00005590| 20 20 20 26 20 5c 68 6f | 73 74 7b 31 34 39 2e 37 | & \ho|st{149.7|
|000055a0| 36 2e 31 2e 32 7d 20 20 | 20 20 20 26 20 5c 68 6f |6.1.2} | & \ho|
|000055b0| 73 74 7b 66 64 64 69 30 | 7d 09 5c 5c 0a 20 20 5c |st{fddi0|}.\\. \|
|000055c0| 68 6c 69 6e 65 0a 20 5c | 65 6e 64 7b 74 61 62 75 |hline. \|end{tabu|
|000055d0| 6c 61 72 7d 0a 5c 65 6e | 64 7b 63 65 6e 74 65 72 |lar}.\en|d{center|
|000055e0| 7d 0a 0a 0a 52 6f 75 74 | 65 73 20 74 6f 20 61 20 |}...Rout|es to a |
|000055f0| 6e 65 74 77 6f 72 6b 20 | 74 68 61 74 20 5c 68 6f |network |that \ho|
|00005600| 73 74 7b 73 6f 70 68 75 | 73 7d 20 69 73 20 64 69 |st{sophu|s} is di|
|00005610| 72 65 63 74 6c 79 20 63 | 6f 6e 6e 65 63 74 65 64 |rectly c|onnected|
|00005620| 20 74 6f 20 64 6f 6e 27 | 74 0a 72 65 71 75 69 72 | to don'|t.requir|
|00005630| 65 20 61 20 67 61 74 65 | 77 61 79 3b 20 74 68 65 |e a gate|way; the|
|00005640| 72 65 66 6f 72 65 20 74 | 68 65 79 20 73 68 6f 77 |refore t|hey show|
|00005650| 20 61 20 67 61 74 65 77 | 61 79 20 65 6e 74 72 79 | a gatew|ay entry|
|00005660| 20 6f 66 20 60 60 2d 27 | 27 2e 0a 0a 0a 5c 69 6e | of ``-'|'....\in|
|00005670| 64 65 78 7b 49 50 21 64 | 79 6e 61 6d 69 63 20 72 |dex{IP!d|ynamic r|
|00005680| 6f 75 74 69 6e 67 7d 0a | 5c 69 6e 64 65 78 7b 64 |outing}.|\index{d|
|00005690| 79 6e 61 6d 69 63 20 72 | 6f 75 74 69 6e 67 7d 0a |ynamic r|outing}.|
|000056a0| 5c 69 6e 64 65 78 7b 72 | 6f 75 74 69 6e 67 21 64 |\index{r|outing!d|
|000056b0| 61 65 6d 6f 6e 7d 0a 5c | 69 6e 64 65 78 7b 72 6f |aemon}.\|index{ro|
|000056c0| 75 74 69 6e 67 21 64 79 | 6e 61 6d 69 63 7d 0a 52 |uting!dy|namic}.R|
|000056d0| 6f 75 74 69 6e 67 20 74 | 61 62 6c 65 73 20 6d 61 |outing t|ables ma|
|000056e0| 79 20 62 65 20 62 75 69 | 6c 74 20 62 79 20 76 61 |y be bui|lt by va|
|000056f0| 72 69 6f 75 73 20 6d 65 | 61 6e 73 2e 20 46 6f 72 |rious me|ans. For|
|00005700| 20 73 6d 61 6c 6c 20 4c | 41 4e 73 2c 20 69 74 20 | small L|ANs, it |
|00005710| 69 73 0a 75 73 75 61 6c | 6c 79 20 6d 6f 73 74 20 |is.usual|ly most |
|00005720| 65 66 66 69 63 69 65 6e | 74 20 74 6f 20 63 6f 6e |efficien|t to con|
|00005730| 73 74 72 75 63 74 20 74 | 68 65 6d 20 62 79 20 68 |struct t|hem by h|
|00005740| 61 6e 64 20 61 6e 64 20 | 66 65 65 64 20 74 68 65 |and and |feed the|
|00005750| 6d 20 74 6f 20 49 50 0a | 75 73 69 6e 67 20 74 68 |m to IP.|using th|
|00005760| 65 20 5c 70 72 6f 67 7b | 72 6f 75 74 65 7d 20 63 |e \prog{|route} c|
|00005770| 6f 6d 6d 61 6e 64 20 61 | 74 20 62 6f 6f 74 20 74 |ommand a|t boot t|
|00005780| 69 6d 65 20 28 73 65 65 | 20 63 68 61 70 74 65 72 |ime (see| chapter|
|00005790| 7e 5c 72 65 66 7b 69 66 | 61 63 65 7d 29 2e 0a 46 |~\ref{if|ace})..F|
|000057a0| 6f 72 20 6c 61 72 67 65 | 72 20 6e 65 74 77 6f 72 |or large|r networ|
|000057b0| 6b 73 2c 20 74 68 65 79 | 20 61 72 65 20 62 75 69 |ks, they| are bui|
|000057c0| 6c 74 20 61 6e 64 20 61 | 64 6a 75 73 74 65 64 20 |lt and a|djusted |
|000057d0| 61 74 20 72 75 6e 2d 74 | 69 6d 65 20 62 79 0a 5c |at run-t|ime by.\|
|000057e0| 65 6d 70 68 7b 72 6f 75 | 74 69 6e 67 20 64 61 65 |emph{rou|ting dae|
|000057f0| 6d 6f 6e 73 7d 3b 20 74 | 68 65 73 65 20 72 75 6e |mons}; t|hese run|
|00005800| 20 6f 6e 20 63 65 6e 74 | 72 61 6c 20 68 6f 73 74 | on cent|ral host|
|00005810| 73 20 6f 66 20 74 68 65 | 20 6e 65 74 77 6f 72 6b |s of the| network|
|00005820| 20 61 6e 64 0a 65 78 63 | 68 61 6e 67 65 20 72 6f | and.exc|hange ro|
|00005830| 75 74 69 6e 67 20 69 6e | 66 6f 72 6d 61 74 69 6f |uting in|formatio|
|00005840| 6e 20 74 6f 20 63 6f 6d | 70 75 74 65 20 60 60 6f |n to com|pute ``o|
|00005850| 70 74 69 6d 61 6c 27 27 | 20 72 6f 75 74 65 73 20 |ptimal''| routes |
|00005860| 62 65 74 77 65 65 6e 20 | 74 68 65 0a 6d 65 6d 62 |between |the.memb|
|00005870| 65 72 20 6e 65 74 77 6f | 72 6b 73 2e 0a 0a 0a 5c |er netwo|rks....\|
|00005880| 69 6e 64 65 78 7b 49 50 | 21 72 6f 75 74 69 6e 67 |index{IP|!routing|
|00005890| 20 70 72 6f 74 6f 63 6f | 6c 73 7d 0a 5c 69 6e 64 | protoco|ls}.\ind|
|000058a0| 65 78 7b 72 6f 75 74 69 | 6e 67 21 70 72 6f 74 6f |ex{routi|ng!proto|
|000058b0| 63 6f 6c 73 7d 0a 5c 69 | 6e 64 65 78 7b 52 6f 75 |cols}.\i|ndex{Rou|
|000058c0| 74 69 6e 67 20 49 6e 66 | 6f 72 6d 61 74 69 6f 6e |ting Inf|ormation|
|000058d0| 20 50 72 6f 74 6f 63 6f | 6c 7d 0a 5c 69 6e 64 65 | Protoco|l}.\inde|
|000058e0| 78 7b 52 49 50 7c 73 65 | 65 20 7b 52 6f 75 74 69 |x{RIP|se|e {Routi|
|000058f0| 6e 67 20 49 6e 66 6f 72 | 6d 61 74 69 6f 6e 20 50 |ng Infor|mation P|
|00005900| 72 6f 74 6f 63 6f 6c 7d | 7d 0a 5c 69 6e 64 65 78 |rotocol}|}.\index|
|00005910| 7b 72 6f 75 74 65 64 40 | 5c 70 72 6f 67 7b 72 6f |{routed@|\prog{ro|
|00005920| 75 74 65 64 7d 7d 0a 5c | 69 6e 64 65 78 7b 67 61 |uted}}.\|index{ga|
|00005930| 74 65 64 40 5c 70 72 6f | 67 7b 67 61 74 65 64 7d |ted@\pro|g{gated}|
|00005940| 7d 0a 44 65 70 65 6e 64 | 69 6e 67 20 6f 6e 20 74 |}.Depend|ing on t|
|00005950| 68 65 20 73 69 7a 65 20 | 6f 66 20 74 68 65 20 6e |he size |of the n|
|00005960| 65 74 77 6f 72 6b 2c 20 | 64 69 66 66 65 72 65 6e |etwork, |differen|
|00005970| 74 20 72 6f 75 74 69 6e | 67 20 70 72 6f 74 6f 63 |t routin|g protoc|
|00005980| 6f 6c 73 20 77 69 6c 6c | 0a 62 65 20 75 73 65 64 |ols will|.be used|
|00005990| 2e 20 20 46 6f 72 20 72 | 6f 75 74 69 6e 67 20 69 |. For r|outing i|
|000059a0| 6e 73 69 64 65 20 61 75 | 74 6f 6e 6f 6d 6f 75 73 |nside au|tonomous|
|000059b0| 20 73 79 73 74 65 6d 73 | 20 28 73 75 63 68 20 61 | systems| (such a|
|000059c0| 73 20 47 72 6f 75 63 68 | 6f 20 4d 61 72 78 0a 63 |s Grouch|o Marx.c|
|000059d0| 61 6d 70 75 73 29 2c 20 | 74 68 65 20 5c 65 6d 70 |ampus), |the \emp|
|000059e0| 68 7b 69 6e 74 65 72 6e | 61 6c 20 72 6f 75 74 69 |h{intern|al routi|
|000059f0| 6e 67 20 70 72 6f 74 6f | 63 6f 6c 73 7d 20 61 72 |ng proto|cols} ar|
|00005a00| 65 20 75 73 65 64 2e 20 | 20 54 68 65 20 6d 6f 73 |e used. | The mos|
|00005a10| 74 0a 70 72 6f 6d 69 6e | 65 6e 74 20 6f 6e 65 20 |t.promin|ent one |
|00005a20| 69 73 20 52 49 50 2c 20 | 74 68 65 20 52 6f 75 74 |is RIP, |the Rout|
|00005a30| 69 6e 67 20 49 6e 66 6f | 72 6d 61 74 69 6f 6e 20 |ing Info|rmation |
|00005a40| 50 72 6f 74 6f 63 6f 6c | 2c 20 77 68 69 63 68 20 |Protocol|, which |
|00005a50| 69 73 0a 69 6d 70 6c 65 | 6d 65 6e 74 65 64 20 62 |is.imple|mented b|
|00005a60| 79 20 74 68 65 20 42 53 | 44 20 5c 70 72 6f 67 7b |y the BS|D \prog{|
|00005a70| 72 6f 75 74 65 64 7d 20 | 64 61 65 6d 6f 6e 2e 20 |routed} |daemon. |
|00005a80| 20 46 6f 72 20 72 6f 75 | 74 69 6e 67 20 62 65 74 | For rou|ting bet|
|00005a90| 77 65 65 6e 0a 61 75 74 | 6f 6e 6f 6d 6f 75 73 20 |ween.aut|onomous |
|00005aa0| 73 79 73 74 65 6d 73 2c | 20 5c 65 6d 70 68 7b 65 |systems,| \emph{e|
|00005ab0| 78 74 65 72 6e 61 6c 20 | 72 6f 75 74 69 6e 67 20 |xternal |routing |
|00005ac0| 70 72 6f 74 6f 63 6f 6c | 73 7d 20 6c 69 6b 65 20 |protocol|s} like |
|00005ad0| 45 47 50 0a 28 45 78 74 | 65 72 6e 61 6c 20 47 61 |EGP.(Ext|ernal Ga|
|00005ae0| 74 65 77 61 79 20 50 72 | 6f 74 6f 63 6f 6c 29 2c |teway Pr|otocol),|
|00005af0| 20 6f 72 20 42 47 50 20 | 28 42 6f 72 64 65 72 20 | or BGP |(Border |
|00005b00| 47 61 74 65 77 61 79 20 | 50 72 6f 74 6f 63 6f 6c |Gateway |Protocol|
|00005b10| 29 20 68 61 76 65 20 74 | 6f 20 62 65 0a 75 73 65 |) have t|o be.use|
|00005b20| 64 3b 20 74 68 65 73 65 | 20 28 61 73 20 77 65 6c |d; these| (as wel|
|00005b30| 6c 20 61 73 20 52 49 50 | 29 20 68 61 76 65 20 62 |l as RIP|) have b|
|00005b40| 65 65 6e 20 69 6d 70 6c | 65 6d 65 6e 74 65 64 20 |een impl|emented |
|00005b50| 69 6e 20 74 68 65 20 55 | 6e 69 76 65 72 73 69 74 |in the U|niversit|
|00005b60| 79 20 6f 66 0a 43 6f 72 | 6e 65 6c 6c 27 73 20 5c |y of.Cor|nell's \|
|00005b70| 70 72 6f 67 7b 67 61 74 | 65 64 7d 20 64 61 65 6d |prog{gat|ed} daem|
|00005b80| 6f 6e 2e 5c 66 6f 6f 74 | 6e 6f 74 65 7b 0a 20 5c |on.\foot|note{. \|
|00005b90| 70 72 6f 67 7b 72 6f 75 | 74 65 64 7d 20 69 73 20 |prog{rou|ted} is |
|00005ba0| 63 6f 6e 73 69 64 65 72 | 65 64 20 62 72 6f 6b 65 |consider|ed broke|
|00005bb0| 6e 20 62 79 20 6d 61 6e | 79 20 70 65 6f 70 6c 65 |n by man|y people|
|00005bc0| 2e 20 20 53 69 6e 63 65 | 20 5c 70 72 6f 67 7b 67 |. Since| \prog{g|
|00005bd0| 61 74 65 64 7d 0a 20 73 | 75 70 70 6f 72 74 73 20 |ated}. s|upports |
|00005be0| 52 49 50 20 20 61 73 20 | 77 65 6c 6c 2c 20 69 74 |RIP as |well, it|
|00005bf0| 20 69 73 20 62 65 74 74 | 65 72 20 74 6f 20 75 73 | is bett|er to us|
|00005c00| 65 20 74 68 61 74 20 69 | 6e 73 74 65 61 64 2e 0a |e that i|nstead..|
|00005c10| 7d 0a 0a 0a 25 20 55 73 | 75 61 6c 6c 79 2c 20 79 |}...% Us|ually, y|
|00005c20| 6f 75 20 77 6f 6e 27 74 | 20 6e 65 65 64 20 61 6e |ou won't| need an|
|00005c30| 79 20 64 79 6e 61 6d 69 | 63 20 72 6f 75 74 69 6e |y dynami|c routin|
|00005c40| 67 20 75 6e 6c 65 73 73 | 20 79 6f 75 72 20 6e 65 |g unless| your ne|
|00005c50| 74 77 6f 72 6b 20 69 73 | 20 76 65 72 79 0a 25 20 |twork is| very.% |
|00005c60| 6c 61 72 67 65 2c 20 6f | 72 20 72 69 63 68 6c 79 |large, o|r richly|
|00005c70| 20 69 6e 74 65 72 63 6f | 6e 6e 65 63 74 65 64 2e | interco|nnected.|
|00005c80| 20 20 46 6f 72 20 74 68 | 69 73 20 72 65 61 73 6f | For th|is reaso|
|00005c90| 6e 2c 20 6f 6e 6c 79 20 | 73 74 61 74 69 63 20 72 |n, only |static r|
|00005ca0| 6f 75 74 69 6e 67 0a 25 | 20 74 61 62 6c 65 73 20 |outing.%| tables |
|00005cb0| 63 72 65 61 74 65 64 20 | 61 74 20 62 6f 6f 74 20 |created |at boot |
|00005cc0| 74 69 6d 65 20 77 69 6c | 6c 20 62 65 20 64 69 73 |time wil|l be dis|
|00005cd0| 63 75 73 73 65 64 20 69 | 6e 20 74 68 69 73 20 62 |cussed i|n this b|
|00005ce0| 6f 6f 6b 2e 0a 0a 0a 0a | 5c 73 75 62 73 65 63 74 |ook.....|\subsect|
|00005cf0| 69 6f 6e 7b 4d 65 74 72 | 69 63 20 56 61 6c 75 65 |ion{Metr|ic Value|
|00005d00| 73 7d 0a 25 25 25 25 25 | 25 25 25 25 25 25 25 25 |s}.%%%%%|%%%%%%%%|
|00005d10| 25 25 25 25 25 25 25 25 | 25 25 25 25 25 25 25 25 |%%%%%%%%|%%%%%%%%|
|00005d20| 25 25 25 25 25 25 25 25 | 25 25 25 25 25 25 25 25 |%%%%%%%%|%%%%%%%%|
|00005d30| 25 25 25 25 25 25 25 25 | 25 25 25 25 25 25 25 25 |%%%%%%%%|%%%%%%%%|
|00005d40| 25 25 25 25 0a 5c 6c 61 | 62 65 6c 7b 74 63 70 69 |%%%%.\la|bel{tcpi|
|00005d50| 70 2e 72 6f 75 74 69 6e | 67 2e 6d 65 74 72 69 63 |p.routin|g.metric|
|00005d60| 7d 0a 5c 69 6e 64 65 78 | 7b 52 6f 75 74 69 6e 67 |}.\index|{Routing|
|00005d70| 20 49 6e 66 6f 72 6d 61 | 74 69 6f 6e 20 50 72 6f | Informa|tion Pro|
|00005d80| 74 6f 63 6f 6c 7d 0a 5c | 69 6e 64 65 78 7b 49 50 |tocol}.\|index{IP|
|00005d90| 21 6d 65 74 72 69 63 7d | 0a 5c 69 6e 64 65 78 7b |!metric}|.\index{|
|00005da0| 72 6f 75 74 69 6e 67 21 | 6d 65 74 72 69 63 7d 0a |routing!|metric}.|
|00005db0| 5c 69 6e 64 65 78 7b 6d | 65 74 72 69 63 2c 20 72 |\index{m|etric, r|
|00005dc0| 6f 75 74 69 6e 67 7c 73 | 65 65 20 7b 72 6f 75 74 |outing|s|ee {rout|
|00005dd0| 69 6e 67 2c 20 6d 65 74 | 72 69 63 7d 7d 0a 0a 44 |ing, met|ric}}..D|
|00005de0| 79 6e 61 6d 69 63 20 72 | 6f 75 74 69 6e 67 20 62 |ynamic r|outing b|
|00005df0| 61 73 65 64 20 6f 6e 20 | 52 49 50 20 63 68 6f 6f |ased on |RIP choo|
|00005e00| 73 65 73 20 74 68 65 20 | 62 65 73 74 20 72 6f 75 |ses the |best rou|
|00005e10| 74 65 20 74 6f 20 73 6f | 6d 65 20 64 65 73 74 69 |te to so|me desti|
|00005e20| 6e 61 74 69 6f 6e 0a 68 | 6f 73 74 20 6f 72 20 6e |nation.h|ost or n|
|00005e30| 65 74 77 6f 72 6b 20 62 | 61 73 65 64 20 6f 6e 20 |etwork b|ased on |
|00005e40| 74 68 65 20 6e 75 6d 62 | 65 72 20 6f 66 20 60 60 |the numb|er of ``|
|00005e50| 68 6f 70 73 27 27 2c 20 | 74 68 61 74 20 69 73 2c |hops'', |that is,|
|00005e60| 20 74 68 65 20 67 61 74 | 65 77 61 79 73 20 61 0a | the gat|eways a.|
|00005e70| 64 61 74 61 67 72 61 6d | 20 68 61 73 20 74 6f 20 |datagram| has to |
|00005e80| 70 61 73 73 20 62 65 66 | 6f 72 65 20 72 65 61 63 |pass bef|ore reac|
|00005e90| 68 69 6e 67 20 69 74 2e | 20 54 68 65 20 73 68 6f |hing it.| The sho|
|00005ea0| 72 74 65 72 20 61 20 72 | 6f 75 74 65 20 69 73 2c |rter a r|oute is,|
|00005eb0| 20 74 68 65 0a 62 65 74 | 74 65 72 20 52 49 50 20 | the.bet|ter RIP |
|00005ec0| 72 61 74 65 73 20 69 74 | 2e 20 56 65 72 79 20 6c |rates it|. Very l|
|00005ed0| 6f 6e 67 20 72 6f 75 74 | 65 73 20 77 69 74 68 20 |ong rout|es with |
|00005ee0| 31 36 20 6f 72 20 6d 6f | 72 65 20 68 6f 70 73 20 |16 or mo|re hops |
|00005ef0| 61 72 65 20 72 65 67 61 | 72 64 65 64 0a 61 73 20 |are rega|rded.as |
|00005f00| 75 6e 75 73 61 62 6c 65 | 2c 20 61 6e 64 20 61 72 |unusable|, and ar|
|00005f10| 65 20 64 69 73 63 61 72 | 64 65 64 2e 0a 0a 0a 54 |e discar|ded....T|
|00005f20| 6f 20 75 73 65 20 52 49 | 50 20 74 6f 20 6d 61 6e |o use RI|P to man|
|00005f30| 61 67 65 20 72 6f 75 74 | 69 6e 67 20 69 6e 66 6f |age rout|ing info|
|00005f40| 72 6d 61 74 69 6f 6e 20 | 69 6e 74 65 72 6e 61 6c |rmation |internal|
|00005f50| 20 74 6f 20 79 6f 75 72 | 20 6c 6f 63 61 6c 0a 6e | to your| local.n|
|00005f60| 65 74 77 6f 72 6b 2c 20 | 79 6f 75 20 68 61 76 65 |etwork, |you have|
|00005f70| 20 74 6f 20 72 75 6e 20 | 5c 70 72 6f 67 7b 67 61 | to run |\prog{ga|
|00005f80| 74 65 64 7d 20 6f 6e 20 | 61 6c 6c 20 68 6f 73 74 |ted} on |all host|
|00005f90| 73 2e 20 41 74 20 62 6f | 6f 74 20 74 69 6d 65 2c |s. At bo|ot time,|
|00005fa0| 0a 5c 70 72 6f 67 7b 67 | 61 74 65 64 7d 20 63 68 |.\prog{g|ated} ch|
|00005fb0| 65 63 6b 73 20 66 6f 72 | 20 61 6c 6c 20 61 63 74 |ecks for| all act|
|00005fc0| 69 76 65 20 6e 65 74 77 | 6f 72 6b 20 69 6e 74 65 |ive netw|ork inte|
|00005fd0| 72 66 61 63 65 73 2e 20 | 20 49 66 20 74 68 65 72 |rfaces. | If ther|
|00005fe0| 65 20 69 73 0a 6d 6f 72 | 65 20 74 68 61 6e 20 6f |e is.mor|e than o|
|00005ff0| 6e 65 20 61 63 74 69 76 | 65 20 69 6e 74 65 72 66 |ne activ|e interf|
|00006000| 61 63 65 20 28 6e 6f 74 | 20 63 6f 75 6e 74 69 6e |ace (not| countin|
|00006010| 67 20 74 68 65 20 6c 6f | 6f 70 62 61 63 6b 20 69 |g the lo|opback i|
|00006020| 6e 74 65 72 66 61 63 65 | 29 2c 0a 69 74 20 61 73 |nterface|),.it as|
|00006030| 73 75 6d 65 73 20 74 68 | 65 20 68 6f 73 74 20 69 |sumes th|e host i|
|00006040| 73 20 73 77 69 74 63 68 | 69 6e 67 20 70 61 63 6b |s switch|ing pack|
|00006050| 65 74 73 20 62 65 74 77 | 65 65 6e 20 73 65 76 65 |ets betw|een seve|
|00006060| 72 61 6c 20 6e 65 74 77 | 6f 72 6b 73 2c 20 61 6e |ral netw|orks, an|
|00006070| 64 0a 77 69 6c 6c 20 61 | 63 74 69 76 65 6c 79 20 |d.will a|ctively |
|00006080| 65 78 63 68 61 6e 67 65 | 20 61 6e 64 20 62 72 6f |exchange| and bro|
|00006090| 61 64 63 61 73 74 20 72 | 6f 75 74 69 6e 67 20 69 |adcast r|outing i|
|000060a0| 6e 66 6f 72 6d 61 74 69 | 6f 6e 2e 20 4f 74 68 65 |nformati|on. Othe|
|000060b0| 72 77 69 73 65 2c 0a 69 | 74 20 77 69 6c 6c 20 6f |rwise,.i|t will o|
|000060c0| 6e 6c 79 20 70 61 73 73 | 69 76 65 6c 79 20 72 65 |nly pass|ively re|
|000060d0| 63 65 69 76 65 20 61 6e | 79 20 52 49 50 20 75 70 |ceive an|y RIP up|
|000060e0| 64 61 74 65 73 20 61 6e | 64 20 75 70 64 61 74 65 |dates an|d update|
|000060f0| 20 74 68 65 20 6c 6f 63 | 61 6c 0a 72 6f 75 74 69 | the loc|al.routi|
|00006100| 6e 67 20 74 61 62 6c 65 | 2e 0a 0a 0a 57 68 65 6e |ng table|....When|
|00006110| 20 62 72 6f 61 64 63 61 | 73 74 69 6e 67 20 74 68 | broadca|sting th|
|00006120| 65 20 69 6e 66 6f 72 6d | 61 74 69 6f 6e 20 66 72 |e inform|ation fr|
|00006130| 6f 6d 20 74 68 65 20 6c | 6f 63 61 6c 20 72 6f 75 |om the l|ocal rou|
|00006140| 74 69 6e 67 20 74 61 62 | 6c 65 2c 0a 5c 70 72 6f |ting tab|le,.\pro|
|00006150| 67 7b 67 61 74 65 64 7d | 20 63 6f 6d 70 75 74 65 |g{gated}| compute|
|00006160| 73 20 74 68 65 20 6c 65 | 6e 67 74 68 20 6f 66 20 |s the le|ngth of |
|00006170| 74 68 65 20 72 6f 75 74 | 65 20 66 72 6f 6d 20 74 |the rout|e from t|
|00006180| 68 65 20 73 6f 2d 63 61 | 6c 6c 65 64 0a 5c 65 6d |he so-ca|lled.\em|
|00006190| 70 68 7b 6d 65 74 72 69 | 63 20 76 61 6c 75 65 7d |ph{metri|c value}|
|000061a0| 20 61 73 73 6f 63 69 61 | 74 65 64 20 77 69 74 68 | associa|ted with|
|000061b0| 20 74 68 65 20 72 6f 75 | 74 69 6e 67 20 74 61 62 | the rou|ting tab|
|000061c0| 6c 65 20 65 6e 74 72 79 | 2e 20 54 68 69 73 0a 6d |le entry|. This.m|
|000061d0| 65 74 72 69 63 20 76 61 | 6c 75 65 20 69 73 20 73 |etric va|lue is s|
|000061e0| 65 74 20 62 79 20 74 68 | 65 20 73 79 73 74 65 6d |et by th|e system|
|000061f0| 20 61 64 6d 69 6e 69 73 | 74 72 61 74 6f 72 20 77 | adminis|trator w|
|00006200| 68 65 6e 20 63 6f 6e 66 | 69 67 75 72 69 6e 67 20 |hen conf|iguring |
|00006210| 74 68 65 0a 72 6f 75 74 | 65 20 61 6e 64 20 73 68 |the.rout|e and sh|
|00006220| 6f 75 6c 64 20 72 65 66 | 6c 65 63 74 20 74 68 65 |ould ref|lect the|
|00006230| 20 61 63 74 75 61 6c 20 | 63 6f 73 74 20 6f 66 20 | actual |cost of |
|00006240| 75 73 69 6e 67 20 74 68 | 69 73 20 72 6f 75 74 65 |using th|is route|
|00006250| 2e 20 54 68 65 72 65 66 | 6f 72 65 2c 0a 74 68 65 |. Theref|ore,.the|
|00006260| 20 6d 65 74 72 69 63 20 | 6f 66 20 61 20 72 6f 75 | metric |of a rou|
|00006270| 74 65 20 74 6f 20 61 20 | 73 75 62 6e 65 74 20 74 |te to a |subnet t|
|00006280| 68 65 20 68 6f 73 74 20 | 69 73 20 64 69 72 65 63 |he host |is direc|
|00006290| 74 6c 79 20 63 6f 6e 6e | 65 63 74 65 64 20 74 6f |tly conn|ected to|
|000062a0| 0a 73 68 6f 75 6c 64 20 | 61 6c 77 61 79 73 20 62 |.should |always b|
|000062b0| 65 20 7a 65 72 6f 2c 20 | 77 68 69 6c 65 20 61 20 |e zero, |while a |
|000062c0| 72 6f 75 74 65 20 67 6f | 69 6e 67 20 74 68 72 6f |route go|ing thro|
|000062d0| 75 67 68 20 74 77 6f 20 | 67 61 74 65 77 61 79 73 |ugh two |gateways|
|000062e0| 20 73 68 6f 75 6c 64 0a | 68 61 76 65 20 61 20 6d | should.|have a m|
|000062f0| 65 74 72 69 63 20 6f 66 | 20 74 77 6f 2e 20 48 6f |etric of| two. Ho|
|00006300| 77 65 76 65 72 2c 20 6e | 6f 74 65 20 74 68 61 74 |wever, n|ote that|
|00006310| 20 79 6f 75 20 64 6f 6e | 27 74 20 68 61 76 65 20 | you don|'t have |
|00006320| 74 6f 20 62 6f 74 68 65 | 72 20 61 62 6f 75 74 0a |to bothe|r about.|
|00006330| 6d 65 74 72 69 63 73 20 | 77 68 65 6e 20 79 6f 75 |metrics |when you|
|00006340| 20 64 6f 6e 27 74 20 75 | 73 65 20 5c 70 72 6f 67 | don't u|se \prog|
|00006350| 7b 52 49 50 7d 20 6f 72 | 20 5c 70 72 6f 67 7b 67 |{RIP} or| \prog{g|
|00006360| 61 74 65 64 7d 2e 0a 0a | 5c 69 6e 64 65 78 7b 49 |ated}...|\index{I|
|00006370| 50 21 72 6f 75 74 69 6e | 67 7c 29 7d 0a 0a 5c 73 |P!routin|g|)}..\s|
|00006380| 65 63 74 69 6f 6e 7b 54 | 68 65 20 49 6e 74 65 72 |ection{T|he Inter|
|00006390| 6e 65 74 20 43 6f 6e 74 | 72 6f 6c 20 4d 65 73 73 |net Cont|rol Mess|
|000063a0| 61 67 65 20 50 72 6f 74 | 6f 63 6f 6c 7d 0a 25 25 |age Prot|ocol}.%%|
|000063b0| 25 25 25 25 25 25 25 25 | 25 25 25 25 25 25 25 25 |%%%%%%%%|%%%%%%%%|
|000063c0| 25 25 25 25 25 25 25 25 | 25 25 25 25 25 25 25 25 |%%%%%%%%|%%%%%%%%|
|000063d0| 25 25 25 25 25 25 25 25 | 25 25 25 25 25 25 25 25 |%%%%%%%%|%%%%%%%%|
|000063e0| 25 25 25 25 25 25 25 25 | 25 25 25 25 25 25 25 0a |%%%%%%%%|%%%%%%%.|
|000063f0| 5c 6c 61 62 65 6c 7b 74 | 63 70 69 70 2e 69 63 6d |\label{t|cpip.icm|
+--------+-------------------------+-------------------------+--------+--------+
Only 25.0 KB of data is shown above.